RobertCNelson / stable-kernel

MIT License
74 stars 39 forks source link

build_deb.sh debs installs in /boot instead for BOOT partition #37

Closed srix closed 10 years ago

srix commented 10 years ago

Am using the ubuntu image ubuntu-13.04-console-armhf-2013-11-15 from http://elinux.org/BeagleBoardUbuntu

Am trying to compile kernel with my additional patch and trying to pack it as deb. So the new kernel & modules can be installed from deb file.

I observe that after flashing ubuntu-13.04-console-armhf-2013-11-15 , the sdcard has two partitions BOOT and rootfs

When I try ./build_kernel.sh ./tools/install_kernel.sh kernel is installed in BOOT partition as zImage and the boots properly.

However When I try ./build_deb.sh sudo dpkg -i linux-firmware-image_1.0cross_all.deb sudo dpkg -i linux-headers-3.11.10-armv7-x14.2_1.0cross_armhf.deb sudo dpkg -i linux-image-3.11.10-armv7-x14.2_1.0cross_armhf.deb sudo dpkg -i linux-libc-dev_1.0cross_armhf.deb

The kernel is installed in /boot of rootfs partition. However the system didn’t boot from the kernel in /boot of rootfs. Instead uses the /BOOT partition's zImage to boot.

RobertCNelson commented 10 years ago

Correct... the *.deb files are never going to put the "zImage" nor the "dtbs" in the correct location... It's up too the system management scripts / etc... To know the correct location u-boot is looking for is /boot/uboot/

srix commented 10 years ago

Thanks. Could you please point to some links, Am wondering where to start configuring uboot to load kernel from /boot

RobertCNelson commented 10 years ago

google.com works.. ;)

https://groups.google.com/forum/#!forum/beagleboard works for these basic questions...

type "printenv" in u-boot.. see the "loadzImage" call.. It's followed by a "load mmc disk:partition address file"

So just change the variable used for partition from 0 -> 1 and the file to it's relative path...

easy....