The Ubuntu install on the laptop is now complete. No more Windows :) After a quick and painless install via USB flash keyring, I followed the Wiki to setup the laptop for development. A few steps we're missing in the Wiki setup guide (particularly the GDB/Insight install), so that Wiki page has been updated.
I also spent some time looking into Kernel booting. The 2.6.23 kernel decompresses the zImage, it gets to the 'Done' stage, but goes no further than that. I've checked the ldatags side of uMon and compared that to the setup code in the kernel, and they tied together (as they did in 2.6.22). I've also incrementally patched the 2.6.22 kernel up from the sub-version 6 in the VC CVS, all the way up to 2.6.22.19, and it boots fine (except for the usual MTD issues). It's only when I move to 2.6.23 that the boot fails.
So it looks like I need to debug further into the boot sequence. Potentially using the 3 LEDs on the VCMX212 board as a limited binary sequence counter to step through the boot sequence. I need to find some time to see whether I debug the kernel startup/boot via GDB. Just need a way of setting up the ATAG info to pass to the kernel.
So I've got a choice. Continue advancing the kernel versions and sorting out the booting issues, to hopefully get to a point whether the MTD problems sort themselves out. Or, stay with 2.6.22 (with MTD/JFFS2 patches) and work out why it is spewing so many errors out (and once into BusyBox, why it is so unstable).....
Search This Blog
Sunday, 26 October 2008
Saturday, 18 October 2008
Fresh start
So I managed to revert the kernel back to the base version (2.6.22), and had that booting (until it hit the MTD issues, etc.). And it ended up being quite painless to patch to 2.6.23 A relatively small number of files that needed their rej files checking. Most we're VC changes to file header comments. A few we're deleted files.
Unfortunately it fails to get anywhere booting :( The zImage decompresses fine, but halts straight after that. I'll probably take a step back from that, and incrementally apply the 2.6.22 patches first. Narrow down where the boot discrepancy starts. Rather than trying to run straight to 2.6.23
Finally, for today, I've decided to blitz the laptop. The Ubuntu community docs describe a way of installing from a USB stick. I've tried the initial install of this and it works fine (it's a network boot).
As I type the install is setting up the base system. Existing partitions have already been destroyed :O
Tomorrow I should then have a brand new Ubuntu laptop to play with and setup (according to the Wiki) :) Plus 40GB of space to play with, rather than the FAT limited 4GB home space :S
Unfortunately it fails to get anywhere booting :( The zImage decompresses fine, but halts straight after that. I'll probably take a step back from that, and incrementally apply the 2.6.22 patches first. Narrow down where the boot discrepancy starts. Rather than trying to run straight to 2.6.23
Finally, for today, I've decided to blitz the laptop. The Ubuntu community docs describe a way of installing from a USB stick. I've tried the initial install of this and it works fine (it's a network boot).
As I type the install is setting up the base system. Existing partitions have already been destroyed :O
Tomorrow I should then have a brand new Ubuntu laptop to play with and setup (according to the Wiki) :) Plus 40GB of space to play with, rather than the FAT limited 4GB home space :S
Subscribe to:
Posts (Atom)