On Tue, Nov 3, 2015 at 12:08 PM, Ross Morrison <[email protected]> wrote:
> Robert,
>
> No joy on the redo.
>
> I now remember on a BBB with an erased eMMC and booting off the uSD card, I
> had to remove /boot/initrd.img-4.1.10-bone16 to get capemgr to work. But
> again, this was a Black and booting off the uSD card.
>
> Just did the same (remove /boot/initrd....) on my Green, with the uSD card
> as the boot device. The overlay loads okay.
>
> But, if I remove /boot/initrd... from the eMMC booting version, the system
> hangs here:

odd that shouldn't be needed..

Here's my green:

Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-4.1.10-bone16 ...
7001280 bytes read in 405 ms (16.5 MiB/s)
loading /boot/dtbs/4.1.10-bone16/am335x-bonegreen.dtb ...
54482 bytes read in 47 ms (1.1 MiB/s)
loading /boot/initrd.img-4.1.10-bone16 ...
3900537 bytes read in 237 ms (15.7 MiB/s)
debug: [console=ttyO0,115200n8 bone_capemgr.enable_partno=BB-UART2
root=UUID=e759a48a-f2f3-4bfd-a08e-fe33c3547612 ro rootfstype=ext4
rootwait coherent_pool=1M quiet init=/lib/systemd/systemd] ...
debug: [bootz 0x82000000 0x88080000:3b8479 0x88000000] ...
Kernel image @ 0x82000000 [ 0x000000 - 0x6ad4c0 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8fc47000, end 8ffff479 ... OK
   Loading Device Tree to 8fc36000, end 8fc464d1 ... OK

Starting kernel ...



debian@beaglebone:~$ cat /boot/uEnv.txt
uname_r=4.1.10-bone16
uuid=e759a48a-f2f3-4bfd-a08e-fe33c3547612
#dtb=

cmdline=coherent_pool=1M quiet init=/lib/systemd/systemd

cape_enable=bone_capemgr.enable_partno=BB-UART2


[    0.000000] Linux version 4.1.10-bone16
(root@a5-imx6q-wandboard-2gb) (gcc version 4.6.3 (Debian 4.6.3-14) )
#1 Sun Oct 4 10:00:59 UTC 2015
[    0.000000] Kernel command line: console=ttyO0,115200n8
bone_capemgr.enable_partno=BB-UART2
root=UUID=e759a48a-f2f3-4bfd-a08e-fe33c3547612 ro rootfstype=ext4
rootwait coherent_pool=1M quiet init=/lib/systemd/systemd
[    3.072409] usb usb1: Manufacturer: Linux 4.1.10-bone16 musb-hcd
[    3.249190] bone_capemgr bone_capemgr: Baseboard:
'A335BNLT,\x1a,BBG115081143'
[    3.249214] bone_capemgr bone_capemgr:
compatible-baseboard=ti,beaglebone-black - #slots=4
[    3.303112] bone_capemgr bone_capemgr: slot #0: No cape found
[    3.363112] bone_capemgr bone_capemgr: slot #1: No cape found
[    3.423108] bone_capemgr bone_capemgr: slot #2: No cape found
[    3.483108] bone_capemgr bone_capemgr: slot #3: No cape found
[    3.488894] bone_capemgr bone_capemgr: enabled_partno PARTNO
'BB-UART2' VER 'N/A' PR '0'
[    3.488905] bone_capemgr bone_capemgr: slot #4: override
[    3.488918] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[    3.488932] bone_capemgr bone_capemgr: slot #4: 'Override Board
Name,00A0,Override Manuf,BB-UART2'
[    3.489178] bone_capemgr bone_capemgr: initialized OK.
[    3.506182] bone_capemgr bone_capemgr: slot #4: dtbo
'BB-UART2-00A0.dtbo' loaded; overlay id #0

debian@beaglebone:~$ cat /sys/devices/platform/bone_capemgr/slots
 0: PF----  -1
 1: PF----  -1
 2: PF----  -1
 3: PF----  -1
 4: P-O-L-   0 Override Board Name,00A0,Override Manuf,BB-UART2


debian@beaglebone:~$ ls -lh /lib/firmware/BB-UART*
-rw-r--r-- 1 root root 883 Nov  3 18:26 /lib/firmware/BB-UART1-00A0.dtbo
-rw-r--r-- 1 root root 883 Nov  3 18:26 /lib/firmware/BB-UART2-00A0.dtbo
-rw-r--r-- 1 root root 883 Nov  3 18:26 /lib/firmware/BB-UART4-00A0.dtbo
-rw-r--r-- 1 root root 883 Nov  3 18:26 /lib/firmware/BB-UART5-00A0.dtbo

debian@beaglebone:~$ cat /usr/share/initramfs-tools/hooks/dtbo
#!/bin/sh -e
# Copy the *.dtbo's into the initramfs

if [ "$1" = "prereqs" ]; then exit 0; fi

. /usr/share/initramfs-tools/hook-functions

if [ -d /lib/firmware/ ] ; then
    unset check
    check=$(ls /lib/firmware/ | grep dtbo | head -n 1)
    if [ ! "x${check}" = "x" ] ; then
        mkdir -p $DESTDIR/lib/firmware/
        cp -a /lib/firmware/*.dtbo $DESTDIR/lib/firmware/
    fi
fi

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to