running ./tools/install_kernel.sh

Hi,

I have successfully cross compiled a Debian image with the bb-kernel tools from Robert Nelson:

DTC arch/arm/boot/dts/am335x-bonegreen.dtb
DTC arch/arm/boot/dts/arduino-tre.dtb
DTC arch/arm/boot/dts/am335x-tester.dtb
arch/arm/boot/zImage' -> /home/patrick/projects/embedded/bb-kernel/deploy/3.8.13-bone74.zImage’
.config' -> /home/patrick/projects/embedded/bb-kernel/deploy/config-3.8.13-bone74’
-rwxr-xr-x 1 root root 5.3M Sep 6 17:06 /home/patrick/projects/embedded/bb-kernel/deploy/3.8.13-bone74.zImage

root@kiste:/home/patrick/projects/embedded/bb-kernel# ./tools/install_kernel.sh

I see…
fdisk -l:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
Disk /dev/mapper/kiste-root: 492.8 GB, 492813942784 bytes
Disk /dev/sdb: 15.5 GB, 15548284928 bytes
Disk /dev/mapper/kiste-swap_1: 7033 MB, 7033847808 bytes

lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 243M 0 part /boot
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 465.5G 0 part
├─kiste-root (dm-0) 254:0 0 459G 0 lvm /
└─kiste-swap_1 (dm-1) 254:1 0 6.6G 0 lvm [SWAP]
sdb 8:16 1 14.5G 0 disk
└─sdb1 8:17 1 14.5G 0 part

Use the kernel installing directions as shown.

https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-InstallKernelandRootFileSystem

OK - the unpacking of rootfs is clear, but the setup of the boot partitation is unclear.

Now, copied the boot partitation from the existing emmc boot partiation, but I get:

Importing environment from mmc …
gpio: pin 55 (gpio 55) value is 1
Checking if uenvcmd is set …
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd …
mmc1(part 0) is current device
mmc_send_cmd : timeout: No status update
mmc0 is current device
** File not found /boot/zImage **
** File not found /boot/zImage **
Booting from internal eMMC…
** File not found /boot/dtbs/am335x-boneblack.dtb **

uenvcmd was not defined in uEnv.txt …
halting …

U-Boot# ls
ls - list files in a directory (default /)

Usage:
ls [<dev[:part]> [directory]]

  • List files in directory ‘directory’ of partition ‘part’ on
    device type ‘interface’ instance ‘dev’.
    U-Boot#

Have you built/installed u-boot with this patch?

https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-Bootloader:U-Boot

Regards,

Hmm… ok, interesting.
I now got the boot working by copying ML0 and u-boot.img from the a Debian flasher image.

Then, I set uname_r in uEnv.txt as follows:

##These are needed to be compliant with Angstrom’s 2013.06.20 u-boot.

loadaddr=0x82000000
fdtaddr=0x88000000
rdaddr=0x88080000

initrd_high=0xffffffff
fdt_high=0xffffffff

##These are needed to be compliant with Debian 2014-05-14 u-boot.
uname_r=3.8.13-bone74

loadximage=load mmc 0:2 ${loadaddr} /boot/vmlinuz-${uname_r}
loadxfdt=load mmc 0:2 ${fdtaddr} /boot/dtbs/${uname_r}/${fdtfile}
loadxrd=load mmc 0:2 ${rdaddr} /boot/initrd.img-${uname_r}; setenv rdsize ${filesize}
loaduEnvtxt=load mmc 0:2 ${loadaddr} /boot/uEnv.txt ; env import -t ${loadaddr} ${filesize};
check_dtb=if test -n ${dtb}; then setenv fdtfile ${dtb};fi;
loadall=run loaduEnvtxt; run check_dtb; run loadximage; run loadxrd; run loadxfdt;

mmcargs=setenv bootargs console=tty0 console=${console} ${optargs} ${cape_disable} ${cape_enable} root=/dev/mmcblk0p2 rootfstype=${mmcrootfstype} ${cmdline}

uenvcmd=run loadall; run mmcargs; bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr};

The network from rootfs is giving an error, but the rest looks good.