Debian Install

Posts: 3
Joined: Wed Jul 27, 2011 2:21 pm

Re: Debian Install

Post by dannyperson » Thu Jul 28, 2011 5:48 am

Well, after a few hours of banging my head on the wall I now know cross-compiling the linux kernel is much easier than it sounds!

I used debian sid's 'linux-source-3.0.0' for arm, emdebian's cross compile toolchain ('gcc-4.4-arm-linux-gnueabi' and 'binutils-arm-linux-gnueabi', mostly), and the kernel config from uImage-arm-kirkwood-2.6.36-rc2 at /proc/config.gz

Then it was so easy! Just 'make uImage' and boot!

Posts: 2
Joined: Wed Feb 22, 2012 3:06 pm

Re: Debian Install

Post by spiegel » Wed Feb 22, 2012 3:09 pm

Pls, upload the kernel.

Posts: 2
Joined: Wed Feb 22, 2012 3:06 pm

Re: Debian Install

Post by spiegel » Wed Feb 22, 2012 3:14 pm

Tips for other peoples:

u-boot from (
setenv diskload "ide reset && ext2load ide 0:X $loadaddr /boot/$bootfile" <-- 0:x , X partition
setenv bootargs "console=ttyS0,115200 root=/dev/sdaX rw noinitrd init=/sbin/init" <-- X partition
dannyperson wrote:Does anyone know how to get the Debian kernel booted from uBoot? The package linux-image-3.0.0-1-kirkwood from sid contains an initrd and an vmlinuz.

I've looked at and half-followed ... uboot.html which contains a nice guide for booting an initrd and vmlinuz from uboot, but I skipped the part about setting the machine ID because I wasn't sure what I was doing or what to put there for an NS2.

I can't be sure what I'm missing because netconsole won't show me anything after "Starting kernel ...", but all I know is I'm not getting SSH.

Also, using the uBoot from, if it makes a difference.

Code: Select all

root@obelix:/boot# ln -s vmlinuz-3.0.0-1-kirkwood.uboot uImage
root@obelix:/boot# ln -s initrd.img-3.0.0-1-kirkwood.padded initrd
root@obelix:/boot# reboot
ns2> set mainlineLinux 2201
ns2> diskload=ide reset && ext2load ide 0:1 $loadaddr /boot/$bootfile
ns2> ext2load ide 0:6 0x800000
Loading file "uImage" from ide device 0:6 (hda6)
1579756 bytes read
ns2> ext2load ide 0:6 0xa00000 initrd
Loading file "initrd"
ns2> bootm 0x800000
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1579692 Bytes = 1.5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Starting kernel ...

I've also tried

Code: Select all

ns2> set mainlineLinux yes
ns2> set arcNumber 2201

Post Reply