Help for generation Image BeagleBone Black

Hi!

I’m trying to generate an image for BeagleBone Black. I follow the instructions as http://sergioprado.org/desenvolver-sistema-linux-zero-beaglebone-black/ tutorial, and I am with the following error:

vanessa@vanessa-VirtualBox:~/pBBB/kernel/kernel$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- beaglebone_defconfig -j2
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/video/Kconfig:60:error: recursive dependency detected!
drivers/video/Kconfig:60: symbol FB is selected by DRM_KMS_HELPER
drivers/gpu/drm/Kconfig:28: symbol DRM_KMS_HELPER is selected by DRM_TILCDC
drivers/gpu/drm/tilcdc/Kconfig:1: symbol DRM_TILCDC depends on BACKLIGHT_LCD_SUPPORT
drivers/video/backlight/Kconfig:5: symbol BACKLIGHT_LCD_SUPPORT is selected by FB_BACKLIGHT
drivers/video/Kconfig:247: symbol FB_BACKLIGHT is selected by PMAC_BACKLIGHT
drivers/macintosh/Kconfig:134: symbol PMAC_BACKLIGHT depends on FB
warning: (USB_MUSB_HDRC) selects TWL6030_USB which has unmet direct dependencies (USB_SUPPORT && (USB || USB_GADGET) && TWL4030_CORE && OMAP_USB2 && USB_MUSB_OMAP2PLUS)
warning: (DVB_USB_PCTV452E) selects TTPCI_EEPROM which has unmet direct dependencies (MEDIA_SUPPORT && MEDIA_PCI_SUPPORT && MEDIA_DIGITAL_TV_SUPPORT && I2C)
warning: (USB_MUSB_HDRC) selects TWL6030_USB which has unmet direct dependencies (USB_SUPPORT && (USB || USB_GADGET) && TWL4030_CORE && OMAP_USB2 && USB_MUSB_OMAP2PLUS)
warning: (DVB_USB_PCTV452E) selects TTPCI_EEPROM which has unmet direct dependencies (MEDIA_SUPPORT && MEDIA_PCI_SUPPORT && MEDIA_DIGITAL_TV_SUPPORT && I2C)

Those are warnings. The .config was created, so you should be able to continue compiling the kernel.

Thanks for reply!

I managed to compile the kernel and generate the image. But the BBB is not recognized by PC. With other images, such as BBB-eMMC-flasher-2013.09.04.img, partitions are mounted and displayed in Ubuntu. With the image I generated it does not. It also does not mount the serial console. I’m starting with the beablebone. I thought the problem was related to the error: drivers/video/Kconfig:60:error: recursive dependency detected!
drivers/video/Kconfig:60: symbol FB is selected by DRM_KMS_HELPER

Since this error does not interfere, you have a tip on how to make the image to be recognized and access data via serial console (FTDI)?

Thanks

You may also need to compile the modules. When a kernel image is compiled it is given a signature, if that signature does not match the modules then they will not be loaded. This is most likely the reason why the serial and fat partition are not working.

According to some more tips from the post that was following the commands below would be to recompile kernel headers and kernel modules. But I was left with doubts about the CROSS_COMPILE used that is different than the compiled kernel. You would have more detailed tips on how to recompile modules and headers and where should I copy them to generate the correct image?

Below are the suggested command post that was following:

make ARCH=arm CROSS_COMPILE=arm-eldorado-linux-gnueabihf- INSTALL_HDR_PATH=/destino headers_install

make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- -j4 modules

make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- INSTALL_MOD_PATH=./rootfs modules_install

Thanks

Replace all CROSS_COMPILE=arm-eldorado-linux-gnueabihf- with the cross compile you used for the uImage (arm-linux-gnueabi-).

make a directory for the headers then replace
INSTALL_HDR_PATH={PATH TO HEADER DIRECTORY}

This will create a {PATH TO HEADER DIRECTORY}/include directory with all the headers.
Then on BBB, the Header go into /usr/include.

make a directory for the modules then replace
INSTALL_MOD_PATH={PATH TO MODULE DIRECTORY}

This will create a {PATH TO MODULE DIRECTORY}/lib directory with all the modules and firmware.
Then on BBB, the Modules go into /lib/modules firmware into /lib/firmware

Hello,
I created the directories on PC. Modules compiled and installed modules and headers as indicated. I ran the command sudo chown-R root.root / media / rootfs_ / lib / firmware, copied to other directories for User Group and were the root and not the user of my machine. However follow with the same problem.

Below I am putting as was the partitions on the SD card.

Boot:

vanessa@vanessa-VirtualBox:~$ ls -lsa /media/boot/
total 4760
1 drwx------ 2 vanessa vanessa 512 Dez 31 1969 .
4 drwxr-xr-x 7 root root 4096 Abr 25 15:46 …
25 -rw-r–r-- 1 vanessa vanessa 24968 Abr 25 14:59 am335x-boneblack.dtb
102 -rw-r–r-- 1 vanessa vanessa 103812 Abr 25 14:59 MLO
354 -rw-r–r-- 1 vanessa vanessa 362136 Abr 25 14:59 u-boot.img
1 -rw-r–r-- 1 vanessa vanessa 226 Abr 25 14:59 uEnv.txt
4275 -rw-r–r-- 1 vanessa vanessa 4376808 Abr 25 14:59 uImage
vanessa@vanessa-VirtualBox:~$ ls -lsa /media/rootfs_/
total 84
4 drwxrwxr-x 18 root root 4096 Abr 25 15:24 .
4 drwxr-xr-x 7 root root 4096 Abr 25 15:46 …
4 drwxrwxr-x 2 root root 4096 Abr 25 14:07 bin
4 drwxr-xr-x 3 root root 4096 Abr 25 14:09 dev
4 drwxr-xr-x 5 root root 4096 Dez 31 1999 etc
4 drwxrwxr-x 4 root root 4096 Abr 25 14:09 home
4 drwxrwxr-x 4 root root 4096 Abr 25 15:28 lib
0 lrwxrwxrwx 1 root root 3 Abr 25 13:59 lib32 → lib
0 lrwxrwxrwx 1 root root 11 Abr 25 14:07 linuxrc → bin/busybox
16 drwx------ 2 root root 16384 Abr 25 14:58 lost+found
4 drwxrwxr-x 2 root root 4096 Ago 30 2013 media
4 drwxrwxr-x 2 root root 4096 Ago 30 2013 mnt
4 drwxrwxr-x 2 root root 4096 Ago 30 2013 opt
4 drwxrwxr-x 2 root root 4096 Ago 30 2013 proc
4 drwx------ 2 root root 4096 Ago 30 2013 root
0 lrwxrwxrwx 1 root root 3 Ago 30 2013 run → tmp
4 drwxrwxr-x 2 root root 4096 Abr 25 14:07 sbin
4 drwxrwxr-x 2 root root 4096 Ago 30 2013 sys
4 drwxrwxrwt 3 root root 4096 Dez 31 1999 tmp
4 drwxrwxr-x 7 root root 4096 Abr 25 15:07 usr
4 drwxrwxr-x 4 root root 4096 Abr 25 14:09 var
vanessa@vanessa-VirtualBox:~$ ls -lsa /media/rootfs_/lib
total 2604
4 drwxrwxr-x 4 root root 4096 Abr 25 15:28 .
4 drwxrwxr-x 18 root root 4096 Abr 25 15:24 …
4 drwxrwxr-x 7 root root 4096 Abr 25 14:53 firmware
132 -rwxr-xr-x 1 root root 134316 Abr 25 14:07 ld-2.17.so
0 lrwxrwxrwx 1 root root 10 Abr 25 14:01 ld-linux.so.3 → ld-2.17.so
1228 -rwxr-xr-x 1 root root 1254532 Abr 25 14:07 libc-2.17.so
40 -rwxr-xr-x 1 root root 38480 Abr 25 14:07 libcrypt-2.17.so
0 lrwxrwxrwx 1 root root 16 Abr 25 14:01 libcrypt.so.1 → libcrypt-2.17.so
0 lrwxrwxrwx 1 root root 12 Abr 25 14:01 libc.so.6 → libc-2.17.so
20 -rwxr-xr-x 1 root root 18008 Abr 25 14:07 libdl-2.17.so
0 lrwxrwxrwx 1 root root 13 Abr 25 14:01 libdl.so.2 → libdl-2.17.so
132 -rwxr-xr-x 1 root root 133660 Abr 25 14:07 libgcc_s.so.1
620 -rwxr-xr-x 1 root root 632404 Abr 25 14:07 libm-2.17.so
0 lrwxrwxrwx 1 root root 12 Abr 25 14:01 libm.so.6 → libm-2.17.so
80 -rwxr-xr-x 1 root root 79808 Abr 25 14:07 libnsl-2.17.so
0 lrwxrwxrwx 1 root root 14 Abr 25 14:01 libnsl.so.1 → libnsl-2.17.so
28 -rwxr-xr-x 1 root root 26224 Abr 25 14:07 libnss_dns-2.17.so
0 lrwxrwxrwx 1 root root 18 Abr 25 14:01 libnss_dns.so.2 → libnss_dns-2.17.so
52 -rwxr-xr-x 1 root root 51124 Abr 25 14:07 libnss_files-2.17.so
0 lrwxrwxrwx 1 root root 20 Abr 25 14:01 libnss_files.so.2 → libnss_files-2.17.so
128 -rwxr-xr-x 1 root root 127839 Abr 25 14:07 libpthread-2.17.so
0 lrwxrwxrwx 1 root root 18 Abr 25 14:01 libpthread.so.0 → libpthread-2.17.so
84 -rwxr-xr-x 1 root root 83820 Abr 25 14:07 libresolv-2.17.so
0 lrwxrwxrwx 1 root root 17 Abr 25 14:01 libresolv.so.2 → libresolv-2.17.so
28 -rwxr-xr-x 1 root root 26528 Abr 25 14:07 librt-2.17.so
0 lrwxrwxrwx 1 root root 13 Abr 25 14:01 librt.so.1 → librt-2.17.so
16 -rwxr-xr-x 1 root root 13944 Abr 25 14:07 libutil-2.17.so
0 lrwxrwxrwx 1 root root 15 Abr 25 14:01 libutil.so.1 → libutil-2.17.so
4 drwxrwxr-x 3 root root 4096 Abr 25 14:52 modules
vanessa@vanessa-VirtualBox:~$ ls -lsa /media/rootfs_/lib/modules/
total 12
4 drwxrwxr-x 3 root root 4096 Abr 25 14:52 .
4 drwxrwxr-x 4 root root 4096 Abr 25 15:28 …
4 drwxrwxr-x 3 root root 4096 Abr 25 14:53 3.8.13-00744-gfc59ffd
vanessa@vanessa-VirtualBox:~$ ls -lsa /media/rootfs_/lib/modules/3.8.13-00744-gfc59ffd/
total 1104
4 drwxrwxr-x 3 root root 4096 Abr 25 14:53 .
4 drwxrwxr-x 3 root root 4096 Abr 25 14:52 …
0 lrwxrwxrwx 1 root root 32 Abr 25 14:52 build → /home/vanessa/pBBB/kernel/kernel
4 drwxrwxr-x 9 root root 4096 Abr 25 14:53 kernel
288 -rw-rw-r-- 1 root root 291012 Abr 25 14:53 modules.alias
296 -rw-rw-r-- 1 root root 302336 Abr 25 14:53 modules.alias.bin
16 -rw-rw-r-- 1 root root 13969 Abr 25 14:52 modules.builtin
16 -rw-rw-r-- 1 root root 16291 Abr 25 14:53 modules.builtin.bin
4 -rw-rw-r-- 1 root root 69 Abr 25 14:53 modules.ccwmap
64 -rw-rw-r-- 1 root root 62135 Abr 25 14:53 modules.dep
104 -rw-rw-r-- 1 root root 103689 Abr 25 14:53 modules.dep.bin
4 -rw-rw-r-- 1 root root 186 Abr 25 14:53 modules.devname
4 -rw-rw-r-- 1 root root 73 Abr 25 14:53 modules.ieee1394map
4 -rw-rw-r-- 1 root root 141 Abr 25 14:53 modules.inputmap
4 -rw-rw-r-- 1 root root 81 Abr 25 14:53 modules.isapnpmap
4 -rw-rw-r-- 1 root root 1404 Abr 25 14:53 modules.ofmap
36 -rw-rw-r-- 1 root root 36432 Abr 25 14:52 modules.order
4 -rw-rw-r-- 1 root root 99 Abr 25 14:53 modules.pcimap
4 -rw-rw-r-- 1 root root 43 Abr 25 14:53 modules.seriomap
4 -rw-rw-r-- 1 root root 131 Abr 25 14:53 modules.softdep
84 -rw-rw-r-- 1 root root 82695 Abr 25 14:53 modules.symbols
108 -rw-rw-r-- 1 root root 107289 Abr 25 14:53 modules.symbols.bin
44 -rw-rw-r-- 1 root root 42002 Abr 25 14:53 modules.usbmap
0 lrwxrwxrwx 1 root root 32 Abr 25 14:52 source → /home/vanessa/pBBB/kernel/kernel
vanessa@vanessa-VirtualBox:~$ ls -lsa /media/rootfs_/lib/firmware/
total 140
4 drwxrwxr-x 7 root root 4096 Abr 25 14:53 .
4 drwxrwxr-x 4 root root 4096 Abr 25 15:28 …
4 drwxrwxr-x 2 root root 4096 Abr 25 14:53 cpia2
4 drwxrwxr-x 2 root root 4096 Abr 25 14:53 edgeport
4 drwxrwxr-x 2 root root 4096 Abr 25 14:53 emi26
4 drwxrwxr-x 2 root root 4096 Abr 25 14:53 emi62
4 drwxrwxr-x 2 root root 4096 Abr 25 14:53 keyspan_pda
16 -rw-r–r-- 1 root root 13847 Abr 25 14:53 mts_cdma.fw
16 -rw-r–r-- 1 root root 14067 Abr 25 14:53 mts_edge.fw
16 -rw-r–r-- 1 root root 13847 Abr 25 14:53 mts_gsm.fw
16 -rw-r–r-- 1 root root 13765 Abr 25 14:53 ti_3410.fw
16 -rw-r–r-- 1 root root 13764 Abr 25 14:53 ti_5052.fw
24 -rw-r–r-- 1 root root 23554 Abr 25 14:53 whiteheat.fw
8 -rw-r–r-- 1 root root 5626 Abr 25 14:53 whiteheat_loader.fw
vanessa@vanessa-VirtualBox:~$

What could be permission error (non-root user files to boot)?

Thank you

what are the contents of uEnv.txt?

Contents of uEnv.txt:

bootargs=console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
uenvcmd=mmc dev ${mmcdev};load mmc ${mmcdev} ${loadaddr} uImage;load mmc ${mmcdev} ${fdtaddr} am335x-boneblack.dtb;bootm ${loadaddr} - ${fdtaddr}

look at here. no need to know Chinese, I believe you will know how to modify it.
http://blog.chinaunix.net/uid-28943457-id-4093525.html