HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 06, 2011 05:55PM |
Registered: 13 years ago Posts: 128 |
sudo apt-get install aptitude libncurses5 libncurses5-dev qt3-dev-tools libqt3-mt-dev build-essential fakeroot kernel-package libncurses5 libncurses5-dev patchNow we want to setup the codesourcery compiler via setup_codesourcery.sh script by Matthias "Maddes" Buecher. I attached the script to this post, but you can find this script on many sites, for example here. We can simply get the script via wget
mkdir ~/Kernel cd ~/Kernel wget http://ftp.maddes.net/hardware/Linkstation/setup_codesourcery.shNow let's install the compiler
chmod +x setup_codesourcery.sh sudo ./setup_codesourcery.shWe also need a kernel patch for the GoFlex Net. I got one mine from varkey's page but I had to delete the last 7 lines since they were already in the kernel source. So just download the goflex-2.6.38.patch file I attached to this post and put it to ~/Kernel. What you also need is a kernel config file. To make things a bit easier I've already attached one (.config) for you. You must put it to ~/Kernel too.
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.8.tar.bz2 tar xjvf linux-2.6.38.8.tar.bz2 cd linux-2.6.38.8The next step is to patch the kernel and copy the config file
patch -p1 < ../goflex-2.6.38.patch cp ../.config .After that we go to the crosscompile environment and import the config.
codesourcery-arm-2009q3.sh make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- oldconfigAt this stage you might be asked some questions about kernel options (probably not). It's safe to answer all questions by hitting Enter which means accepting the default setting.
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- xconfigFor the first time I suggest that you don't change anything, just to make sure that your custom kernel boots at all. Later you can recompile the kernel and change whatever you want.
make-kpkg --rootcmd fakeroot --arch armel --cross-compile arm-none-linux-gnueabi- --append-to-version=-goflex --revision=1.1 --initrd binary
scp ~/Kernel/linux-image-2.6.38.8-goflex-ubit_1.1_armel.deb root@ip-of-the-goflex:/rootNow login to your GoFlex Net via ssh and install the kernel
ssh root@ip-of-the-goflex -> Pass cd /root dpkg -i linux-image-2.6.38.8-goflex-ubit_1.1_armel.debThe last step is to create uImage und uInitrd for uBoot/UBIT but also backup to the old ones
cd /boot cp uImage uImage.old cp uInitrd uInitrd.old mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-2.6.38.8 -d /boot/vmlinuz-2.6.38.8-goflex-ubit /boot/uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0 -e 0 -n Linux-2.6.38.8 -d /boot/initrd.img-2.6.38.8-goflex-ubit /boot/uInitrd
cp /path-to-rootfs/boot/uImage.old /path-to-rootfs/boot/uImage cp /path-to-rootfs/boot/uInitrd /path-to-rootfs/boot/uInitrdThis will give you the old kernel back
sudo tune2fs -L "rootfs" /dev/whateverwhere /dev/whatever is the path to the partition containing the rootfs for GoFlex Net
fw_setenv usb_init "run usb_scan; setenv usb_root LABEL=rootfs"after that reboot and you're done. For more information on this solution check out this thread
cd /boot mkdir initrd.img-new cp initrd.img-2.6.38.8-goflex-ubit initrd.img-new/ cd initrd.img-new/ gzip -dc initrd.img-2.6.38.8-goflex-ubit | cpio -id rm initrd.img-2.6.38.8-goflex-ubit nano initFind the section which looks like
if [ -n "${noresume}" ]; then export noresume unset resume else resume=${RESUME:-} fiand replace it by
if [ -n "${noresume}" ]; then export noresume unset resume else resume=${RESUME:-} fi ROOT="/dev/disk/by-label/rootfs"Save your changes (Ctrl+W) and exit (Ctrl+X) nano. Now run
find ./ | cpio -H newc -o > initrd.img-2.6.38.8-goflex-ubit gzip -9 initrd.img-2.6.38.8-goflex-ubit mv initrd.img-2.6.38.8-goflex-ubit.gz ..//initrd.img-2.6.38.8-goflex-ubit_mod cd .. rm -r initrd.img-new mkimage -A arm -O linux -T ramdisk -C gzip -a 0 -e 0 -n Linux-2.6.38.8 -d /boot/initrd.img-2.6.38.8-goflex-ubit_mod /uInitrdThe purpose of all this is to hardcode a rootfs partition. In this case we tell the kernel (via initramfs) that the rootfs partition is a partition with the label "rootfs". This is a very ugly hack but it works when everything doesn't.
cd ~/Kernel dpkg-deb -x linux-headers-2.6.38.8-goflex-ubit_1.1_armel.deb linux-headers-2.6.38.8-goflex-ubit_1.1_armel_hacked dpkg-deb -e linux-headers-2.6.38.8-goflex-ubit_1.1_armel.deb linux-headers-2.6.38.8-goflex-ubit_1.1_armel_hacked/DEBIAN nano linux-headers-2.6.38.8-goflex-ubit_1.1_armel/debian/controlreplace
Depends: libaudio2, libc6 (>= 2.8), libfontconfig1 (>= 2.8.0), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:4.1.1), libice6 (>= 1:1.0.0), libjpeg62 (>= 6b1), libpng12-0 (>= 1.2.13-4), libqt3-mt (>= 3:3.3.8-b), libsm6, libstdc++6 (>= 4.1.1), libx11-6, libxcursor1 (>> 1.1.2), libxext6, libxft2 (>> 2.1.1), libxi6, libxinerama1, libxrandr2, libxrender1, libxt6, zlib1g (>= 1:1.1.4)by
Depends: libc6 (>= 2.8), libgcc1 (>= 1:4.1.1), libjpeg62 (>= 6b1), libpng12-0 (>= 1.2.13-4), libstdc++6 (>= 4.1.1), zlib1g (>= 1:1.1.4)and do
dpkg-deb -b linux-headers-2.6.38.8-goflex-ubit_1.1_armel_hackedAfter that you can install the modified package the usual way.
scp ~/Kernel/linux-headers-2.6.38.8-goflex-ubit_1.1_armel_hacked.deb root@ip-of-the-goflex:/root ssh root@ip-of-the-goflex cd /root dpkg -i linux-headers-2.6.38.8-goflex-ubit_1.1_armel_hacked.deb
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 07, 2011 12:48AM |
Registered: 13 years ago Posts: 35 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 07, 2011 05:21AM |
Registered: 13 years ago Posts: 128 |
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- xconfigjust go to System type -> Marvell Kirkwood Implementations and select "Marvell SheevaPlug Reference Board" and "Marvell eSATA SheevaPlug Reference Board" Then it probably should work with Sheeva.
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 07, 2011 06:00AM |
Registered: 13 years ago Posts: 35 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 07, 2011 11:45AM |
Registered: 14 years ago Posts: 136 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 07, 2011 12:33PM |
Registered: 13 years ago Posts: 35 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 07, 2011 12:59PM |
Registered: 13 years ago Posts: 35 |
root@squeezeplug:/# wget http://www.varkey.in/files/kernel-goflex-dockstar-2.6.38.8-varkey.deb --2011-09-07 17:52:08-- http://www.varkey.in/files/kernel-goflex-dockstar-2.6.38.8-varkey.deb Resolving www.varkey.in... 66.7.207.80 Connecting to www.varkey.in|66.7.207.80|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 10102906 (9.6M) [text/plain] Saving to: `kernel-goflex-dockstar-2.6.38.8-varkey.deb' 100%[======================================>] 10,102,906 389K/s in 27s 2011-09-07 17:52:35 (369 KB/s) - `kernel-goflex-dockstar-2.6.38.8-varkey.deb' saved [10102906/10102906] root@squeezeplug:/# dpkg -i kernel-goflex-dockstar-2.6.38.8-varkey.deb Selecting previously deselected package linux-image-2.6.38.8-varkey. (Reading database ... 10925 files and directories currently installed.) Unpacking linux-image-2.6.38.8-varkey (from kernel-goflex-dockstar-2.6.38.8-varkey.deb) ... Done. Setting up linux-image-2.6.38.8-varkey (1.0) ... Hmm. There is a symbolic link /lib/modules/2.6.38.8-varkey/build However, I can not read it: No such file or directory Therefore, I am deleting /lib/modules/2.6.38.8-varkey/build Hmm. The package shipped with a symbolic link /lib/modules/2.6.38.8-varkey/source However, I can not read the target: No such file or directory Therefore, I am deleting /lib/modules/2.6.38.8-varkey/source Running depmod. Examining /etc/kernel/postinst.d. root@squeezeplug:/# cd /boot/ root@squeezeplug:/boot# /usr/bin/mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-2.6.37.6 -d /boot/vmlinuz-2.6.37.6-goflex /boot/uImage -bash: /usr/bin/mkimage: No such file or directory
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 07, 2011 01:34PM |
Registered: 13 years ago Posts: 128 |
apt-get install uboot-mkimage uboot-envtools cd /boot/ /usr/bin/mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-2.6.37.6 -d /boot/vmlinuz-2.6.37.6-goflex /boot/uImage
zcat /proc/config.gz > .config
Ralphy
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 08, 2011 05:35PM |
# mkimage -A arm -O linux -T ramdisk -C gzip -a 0 -e 0 -n Linux-2.6.38 -d /boot/initrd.img-2.6.38-goflex-ubit_mod /boot/uInitrd mkimage: Can't open /boot/initrd.img-2.6.38-goflex-ubit_mod: No such file or directory
# dpkg -c linux-image-2.6.38.8-goflex-ubit_1.1_armel.deb | grep goflex-ubit_mod
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 08, 2011 05:48PM |
Registered: 13 years ago Posts: 128 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 06:22AM |
Registered: 13 years ago Posts: 35 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 07:06AM |
Registered: 13 years ago Posts: 128 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 08:10AM |
Registered: 13 years ago Posts: 161 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 12:29PM |
Registered: 13 years ago Posts: 35 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 01:20PM |
Registered: 13 years ago Posts: 128 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 03:52PM |
Registered: 13 years ago Posts: 35 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 03:52PM |
Registered: 13 years ago Posts: 161 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 04:47PM |
Registered: 13 years ago Posts: 128 |
#fw_setenv usb_init "run usb_scan; setenv usb_root LABEL=rootfs" #fw_printenv | grep usb_init usb_init=run usb_scan; setenv usb_root LABEL=rootfs
cat /proc/cmdline console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) root=/dev/sda1 rootdelay=10 netconsole=@10.0.10.6/eth0,@10.10.10.4/
.... Registering the dns_resolver key type registered taskstats version 1 drivers/rtc/hctosys.c: unable to open rtc device (rtc0) Freeing init memory: 164K scsi 2:0:0:0: Direct-Access SanDisk Cruzer 7.01 PQ: 0 ANSI: 0 CCS sd 2:0:0:0: [sdc] 7905279 512-byte logical blocks: (4.04 GB/3.76 GiB) sd 2:0:0:0: [sdc] Write Protect is off sd 2:0:0:0: [sdc] Assuming drive cache: write through sd 2:0:0:0: Attached scsi generic sg2 type 0 sd 2:0:0:0: [sdc] Assuming drive cache: write through sdc: sdc1 sdc2 sd 2:0:0:0: [sdc] Assuming drive cache: write through sd 2:0:0:0: [sdc] Attached SCSI removable diskat this point the kernel simply freezes. Now take my custom vanilla kernel instead:
.... Registering the dns_resolver key type registered taskstats version 1 drivers/rtc/hctosys.c: unable to open rtc device (rtc0) Waiting 10sec before mounting root device... scsi 2:0:0:0: Direct-Access SanDisk Cruzer 1.10 PQ: 0 ANSI: 2 sd 2:0:0:0: Attached scsi generic sg2 type 0 sd 2:0:0:0: [sdc] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB) sd 2:0:0:0: [sdc] Write Protect is off sd 2:0:0:0: [sdc] Assuming drive cache: write through sd 2:0:0:0: [sdc] Assuming drive cache: write through sdc: unknown partition table sd 2:0:0:0: [sdc] Assuming drive cache: write through sd 2:0:0:0: [sdc] Attached SCSI removable disk scsi 3:0:0:0: Direct-Access SanDisk Cruzer 7.01 PQ: 0 ANSI: 0 CCS sd 3:0:0:0: Attached scsi generic sg3 type 0 sd 3:0:0:0: [sdd] 7905279 512-byte logical blocks: (4.04 GB/3.76 GiB) sd 3:0:0:0: [sdd] Write Protect is off sd 3:0:0:0: [sdd] Assuming drive cache: write through sd 3:0:0:0: [sdd] Assuming drive cache: write through sdd: sdd1 sdd2 sd 3:0:0:0: [sdd] Assuming drive cache: write through sd 3:0:0:0: [sdd] Attached SCSI removable disk Unable to handle kernel NULL pointer dereference at virtual address 000001bc pgd = c0004000 [000001bc] *pgd=00000000 Internal error: Oops: 5 [#1] last sysfs file: Modules linked in: CPU: 0 Not tainted (2.6.38.8-goflex-ubit #5) PC is at blkdev_get+0x20c/0x294 LR is at blkdev_get+0x20c/0x294 pc : [<c00c3d80>] lr : [<c00c3d80>] psr: 60000013 sp : c7827e30 ip : 00000001 fp : 00000000 r10: 00000000 r9 : c7402390 r8 : fffffffa r7 : 00000083 r6 : c04e0368 r5 : c7402380 r4 : c7402540 r3 : 00000000 r2 : 00000000 r1 : c7402564 r0 : c06963f8 Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel Control: 0005397f Table: 00004000 DAC: 00000017 Process swapper (pid: 1, stack limit = 0xc7826270) Stack: (0xc7827e30 to 0xc7828000) 7e20: 00000003 c7402564 c7827e44 00000004 7e40: 00000000 00800011 c7405600 00000001 00000000 c7402380 00000083 c04e0368 7e60: 00008000 c04e0368 00008000 00000000 00000000 c00c3ee8 c7b0a0a0 00000083 7e80: 00008000 c009f0a4 c058012c c058012c 00000000 0000000a c7b08ac0 c7b0a110 7ea0: 00000000 c7b08aa0 c7b08aa0 c7b0a0a0 c04e0368 c7b08ac0 00008000 00000000 7ec0: c7b08b00 c00ef864 c00f1110 00008000 c7b08ac0 c009dfa8 c04e0368 00008000 7ee0: c04e0368 c7b08b00 00000000 c7b08ac0 00008000 c009e104 00000020 c7b08ac0 7f00: 00000000 00008000 00000000 c00b3f18 0000000a c00832cc 00000000 0000000a 7f20: c78180a0 c7405600 c7815000 c044bc15 00000000 00008000 c044bc15 00000000 7f40: 00000000 c00b4008 00000000 c044bc15 00000000 00000000 c7b08ac0 c7b08b00 7f60: c78110f8 c7811000 c7811000 00008000 c0025394 c0008b60 00000000 c7811000 7f80: c7811000 c0008de4 c04dc1f0 5c2d2f7c c002c900 00000013 00000080 c00253f4 7fa0: 00000080 c7811000 00000013 00800011 c00253a9 c002c908 00000013 00000000 7fc0: 00000000 c0008f9c 00000000 00000000 c04fbb20 c0009120 fffffffe c7401ee8 7fe0: ffffff9c c04fbac0 c0008334 c000843c 00000000 c002c908 08e75e16 2ced0aac [<c00c3d80>] (blkdev_get+0x20c/0x294) from [<c00c3ee8>] (blkdev_get_by_path+0x28/0x64) [<c00c3ee8>] (blkdev_get_by_path+0x28/0x64) from [<c009f0a4>] (mount_bdev+0x30/0x188)A kernel panic, which, however, doesn't make much difference. I really think that this has something to do with UBIT because all the people from the thread you linked seem to use uBOOT.
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 04:56PM |
Registered: 13 years ago Posts: 128 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 05:32PM |
Registered: 13 years ago Posts: 161 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 05:46PM |
Registered: 13 years ago Posts: 128 |
ethact=egiga0 bootdelay=3 baudrate=115200 mainlineLinux=yes console=ttyS0,115200 led_init=green blinking led_exit=green off led_error=orange blinking mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mtdids=nand0=orion_nand partition=nand0,2 stdin=serial stdout=serial stderr=serial rescue_installed=0 rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi force_rescue=0 force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done usb_scan_list=1 2 3 4 usb_scan_1=usb=0:1 dev=sda1 usb_scan_2=usb=1:1 dev=sdb1 usb_scan_3=usb=2:1 dev=sdc1 usb_scan_4=usb=3:1 dev=sdd1 usb_device=0:1 usb_root=/dev/sda1 usb_rootfstype=ext2 usb_rootdelay=10 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset ethaddr=********************** arcNumber=3089 ipaddr=10.0.10.6 ncip=10.10.10.5 ncipk=10.10.10.4 serverip=10.10.10.3 preboot=run nc_test nc_start nc_test=ping $ncip nc_start=setenv stdin nc; setenv stdout nc; setenv stderr nc; version hd_args_0=boot_dev='ide 0:1'; dev_args='root=LABEL=rootfs' hd_args_1=boot_dev='ide 1:1'; dev_args='root=LABEL=rootfs' usb_args_0=boot_dev='usb 0:1'; dev_args='root=LABEL=rootfs rootdelay=10' usb_args_1=boot_dev='usb 1:1'; dev_args='root=LABEL=rootfs rootdelay=10' usb_args_2=boot_dev='usb 2:1'; dev_args='root=LABEL=rootfs rootdelay=10' usb_args_3=boot_dev='usb 3:1'; dev_args='root=LABEL=rootfs rootdelay=10' usb_init=run usb_scan
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 06:16PM |
Registered: 13 years ago Posts: 161 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 07:44PM |
Registered: 13 years ago Posts: 128 |
#fw_setenv usb_bootcmd "run usb_init; run usb_set_bootargs; usb_root=LABEL=rootfs; run usb_boot"which is like the closest point you can get.
cat /proc/cmdline console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) root=/dev/sdd1 rootdelay=10 netconsole=@10.0.10.6/eth0,@10.10.10.4/
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 09, 2011 08:59PM |
Registered: 13 years ago Posts: 161 |
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done usb_scan_list=1 2 3 4 usb_scan_1=usb=0:1 dev=sda1 usb_scan_2=usb=1:1 dev=sdb1 usb_scan_3=usb=2:1 dev=sdc1 usb_scan_4=usb=3:1 dev=sdd1 usb_device=0:1 usb_rootdelay=10 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset usb_rootfstype=ext3 usb_root=/dev/sda1 usb_init=run usb_scan; setenv usb_root LABEL=ROOTFS cat /proc/cmdline console=ttyS0,115200 root=LABEL=ROOTFS rootdelay=10 rootfstype=ext3 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 10, 2011 03:39AM |
Registered: 13 years ago Posts: 128 |
ethact=egiga0 bootdelay=3 baudrate=115200 mainlineLinux=yes console=ttyS0,115200 led_init=green blinking led_exit=green off led_error=orange blinking mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mtdids=nand0=orion_nand partition=nand0,2 stdin=serial stdout=serial stderr=serial rescue_installed=0 rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi force_rescue=0 force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done usb_scan_list=1 2 3 4 usb_scan_1=usb=0:1 dev=sda1 usb_scan_2=usb=1:1 dev=sdb1 usb_scan_3=usb=2:1 dev=sdc1 usb_scan_4=usb=3:1 dev=sdd1 usb_device=0:1 usb_root=/dev/sda1 usb_rootfstype=ext2 usb_rootdelay=10 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset ethaddr=******************* arcNumber=3089 ipaddr=10.0.10.6 ncip=10.10.10.5 ncipk=10.10.10.4 serverip=10.10.10.3 preboot=run nc_test nc_start nc_test=ping $ncip nc_start=setenv stdin nc; setenv stdout nc; setenv stderr nc; version usb_init=run usb_scan usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 10, 2011 06:12AM |
Registered: 13 years ago Posts: 35 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 10, 2011 06:36AM |
Registered: 13 years ago Posts: 128 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 10, 2011 10:12AM |
Registered: 13 years ago Posts: 161 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 10, 2011 10:43AM |
Registered: 13 years ago Posts: 35 |
Re: HOWTO: Build a custom 2.6.38.8 kernel for Goflex Net September 10, 2011 10:46AM |
Registered: 14 years ago Posts: 136 |
Quote
squeezeplug
I tried to boot from SATA, but that don't work for me. Do you have any idea?
fw_setenv sata_boot 'ide reset; mw 0x800000 0 1; ext2load ide 0:1 0x800000 /boot/uImage; if ext2load ide 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi' fw_setenv sata_bootcmd 'run usb_set_bootargs; run sata_boot' fw_setenv bootcmd 'usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run sata_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset'