Q about flash-kernel

5 views
Skip to first unread message

Osman Eralp

unread,
Nov 25, 2011, 1:30:51 PM11/25/11
to RobotReferencePlatform
This message is to Ralph, but other may find it interesting, so I'm
posting it here.

Ralph,

In your InstallKernel.sh script, you use flash-kernel. I tried running
this command with the hope of installing a new uImage that I just
built. The flash-kernel command seems to work:

root@panda1:/boot# flash-kernel
Using u-boot partition: /dev/mmcblk0p1
Creating backups of boot files ... done.
Generating kernel u-boot image... done.
Generating Initramfs u-boot image... done.
Generating u-boot configuration from /boot/boot.script... done.

However, my uImage is not copied to the boot partition on the SD card.
Before I ran flash-image, I copied of all of the files on the boot
partition of the SD card to /boot on the main partition of the SD
card. I also copied my new uImage to /boot. Then I ran flash-image in
the /boot dir. What am I missing?

Thanks,
Osman

Ralph Gnauck

unread,
Nov 25, 2011, 2:47:04 PM11/25/11
to robotrefere...@googlegroups.com
Osman,
 
Have you tried running flash-kernel as root, i.e.
 
sudo flash-kernel
 
You may need this to be able to write to the boot partition on the SD Card
 
Make sure the /etc/flash-kernel.conf exists and points to the correct SD card partition.
 
It has been a while since I looked at this but just now poking around I found some comments about a shell variable
called FLASH_KERNEL_SKIP.
 
I think this has been introduced in a new version of flash-kernel.
from what I can determine if that is set flash-kernel will not install the files to the /boot partition.
 
 
Haven't verified any of this, it may be that you are using a newer flash kernel and this could be why it is now affecting the build.
 
If you can't find a fix you should be able to just copy the files you need to the boot partition manually, they should be in the /boot folder after running flash-kernel.
 
Ralph

From: Osman Eralp <osman...@gmail.com>
To: RobotReferencePlatform <robotrefere...@googlegroups.com>
Sent: Fri, November 25, 2011 10:30:51 AM
Subject: [RobotRefPlatform] Q about flash-kernel
Reply all
Reply to author
Forward
0 new messages