Hello,
I am currently trying to build a custom kernel for the BBB or BBGW. I figured the old-fashioned
way would work on the board itself.
I think I am incorrect. It is not done yet but I have a luring suspicion that it will fail soon.
So, if I have a neat kernel I built, how exactly can one affix it to the SD Card on the BBB/BBGW?
Seth
P.S. I have not conquered the idea of dd or tar yet w/ images.
Okay,
Just for reference:
- Building on the board is not an option for anyone reading this text.
- I made a mistake and mixed and matched toolchains and revisions of the u-boot lib.
- I understand the instructions work. This is not my concern.
- I also get the commands given since I have been through them numerous times while switching and mixing.
- I found another page online that seems to be working for me for now.
I really like the commands where I can mix and match towards the end
of the instruction set.
e.g.
Copy Root File System
#Debian; Root File System: user@localhost:~$
sudo tar xfvp ./debian-*-*-armhf-*/armhf-rootfs-*.tar -C /media/rootfs/
sync
#Ubuntu; Root File System: user@localhost:~$
sudo tar xfvp ./ubuntu-*-*-armhf-*/armhf-rootfs-*.tar -C /media/rootfs/
sync
Set uname_r in /boot/uEnv.txt
#user@localhost:~$
sudo sh -c "echo 'uname_r=${kernel_version}' >> /media/rootfs/boot/uEnv.txt"
Copy Kernel Image
Kernel Image:
#user@localhost:~$
sudo cp -v ./bb-kernel/deploy/${kernel_version}.zImage /media/rootfs/boot/vmlinuz-${kernel_version}
Copy Kernel Device Tree Binaries
#user@localhost:~$
sudo mkdir -p /media/rootfs/boot/dtbs/${kernel_version}/
sudo tar xfv ./bb-kernel/deploy/${kernel_version}-dtbs.tar.gz -C /media/rootfs/boot/dtbs/${kernel_version}/
Copy Kernel Modules
#user@localhost:~$
sudo tar xfv ./bb-kernel/deploy/${kernel_version}-modules.tar.gz -C /media/rootfs/
File Systems Table (/etc/fstab)
#user@localhost:~/$
sudo sh -c "echo '/dev/mmcblk0p1 / auto errors=remount-ro 0 1' >> /media/rootfs/etc/fstab"
Networking
Edit: /etc/network/interfaces
sudo nano /media/rootfs/etc/network/interfaces
Add:
#/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Remove microSD/SD card
sync
sudo umount /media/rootfs
Sorry for panicking once again.
Seth
P.S. Keep up the instructions if you guys/gals ever get around to it!
Hi @silver2row that’s odd, we switched to the current boot file format the summer of 2014… Wouldn’t that be considered the old format? 
The other option, ONLY if you have a board that already boots, just build the linux-image*.deb and copy it over to the “RUNNING” board and run ‘sudo dpkg -i linux-image*.deb’ and it’ll copy over everything to the correct location… (This of course assumes the board is booting…)
Regards,
Okay,
No issue. I will keep building until I perfect it.
Seth