• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Linux Stuff / Kernel / Re: Correct way to install new Kernel? on: December 20, 2009, 01:31:00 PM
mtd1 is too small to contain your kernel. You need to either compile a smaller kernel (leave out stuff you don't need) or you need to reconfigure mtds. Which will mos likely mean that you need to reinstall the complete plug as directly after your kernel flash area, starts the root partition.

Thx for the (bad) info ;-)

Do you know which is the smallest kernel that supports ftdi? (Im currently on my home Mac and can't compile a new kernel).

a.
2  Linux Stuff / Kernel / Re: Correct way to install new Kernel? on: December 20, 2009, 01:25:07 PM
root@debian:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00200000 00020000 "uImage"
mtd2: 1fd00000 00020000 "root"

Update: it seems the new uImage is slightly bigger than the old... so my next question is: How can I resize the mtd1 (in the middle) without harming the others....

thx

andy
3  Linux Stuff / Kernel / Re: Correct way to install new Kernel? on: December 20, 2009, 01:03:36 PM
I am booting of a SD card (Ubuntu 9.0.4). Since I want to use ftdi device I had to upgrade my kernel. I followed your description (and the ones from crazyhawt) closely, but get a strange error. Here are the steps - maybe you have an idea?

root@debian:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00200000 00020000 "uImage"
mtd2: 1fd00000 00020000 "root"

root@debian:/# flash_eraseall /dev/mtd1
Erasing 128 Kibyte @ 1e0000 -- 93 % complete.
root@debian:/# nandwrite -p /dev/mtd1 uImage
Image 2861324 bytes, NAND page 2048 bytes, OOB area 2048 bytes, device size 2097152 bytes
Input file does not fit into device: Success
Data was only partially written due to error
: Success

I didn't try to reboot, since I don't want to brick the plug.
Any info/solution appreciated...

andy


Pages: [1]