DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-03-01 01:45:24

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

tftp boot

I have seen some other forums, where people have problem booting from tftp. So here are needed commands which you'll need to enter to bootloader.

Code:

ATIP[x][,y][,z] Setup IP address; x is Server/Remote IP, y is Host/Local IP, z is netmask
ATTCx,y       upload file y from TFTP server to RAM address x (length of filename<=20)
ATGO(x)       run program at addr x or boot router

Example use of these commands:

Code:

atip 192.168.9.20,192.168.9.11,255.255.255.0
attc 0x989680,/tftproot/zImage
atgo 0x989680

And here is pretty much my very first try:

Code:

Bootbase V20061226 | 12/26/2006 10:58:17
DRAM0 Size: 128 MB
DRAM POST: Testing:   13792K...OK

DRAM0 Test SUCCESS !

System Memory Mapping
        RAM0: 0x00000000~0x07FFFFFF (128 MB)
        Bootbase: 0x00000000~0x00006547
        Stack: 0x00006548~0x00018D47

Found 28F128J3 at address 0xF8000000
Boot-up Bootext...

Bootext V3.1 | 07/16/2007 15:55:52
Flash Detect....
Found Intel 28F128J3 flash at memory address 0xf8000000

System Memory Mapping
        Flash0: Intel 28F128J3 at 0xF8000000 (16MB; Block0~Block127)
        RAM0: 0x00000000~0x07ffffff (128MB)
        Bootloader: 0x00020000~0x0004577f
        Stack: 0x00045780~0x0005d27f
        Flash Temp Buffer: 0x07fe0000~0x07ffffff (128KB)
vendername = ZyXEL Communications Corp.
productname = ZyXEL NSA220
featurebit [0] [1] = D1 01
MAC = 00 19 CB 82 93 3B
CountryCode = FF
EngDebugFlag = 01

Hit ESC key to stop boot-up kernel...  2
ATCmd> atip 192.168.9.20,192.168.9.11,255.255.255.0
        MAC Address is 00:19:CB:82:93:3B
        Host/Local IP is 192.168.9.11
        Server/Remote IP is 192.168.9.20
        Net Mask is 255.255.255.0

OK

ATCmd>

ATCmd> attc 0x989680,/tftproot/zImage

Using MAC Address 00:19:CB:82:93:3B
Server IP is 192.168.9.20; Local IP is 192.168.9.11
Filename: /tftproot/zImage; Load address: 0x00989680

################################################################################
Received 1847420 (0x1c307c) bytes
OK

ATCmd> atgo 0x989680
Jump to address 0x00989680...
Uncompressing Linux.............................................................
Linux version 2.6.18.6 (root@dunst) (gcc version 3.4.3 (MontaVista 3.4.3-25.0.79
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ), cr=b0053177
Machine: MV-88fxx81
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
end_pfn -> 0x8000
node == 0x0, initrd_node = 0xfffffffe

 mv_map_io
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
Built 1 zonelists.  Total pages: 32768
Kernel command line: rootfstype=reiserfs root=/dev/sda3 console=ttyS0,115200n8 t
--------
init irq----------------------------------------------------------------
boardInfoTbl[0].boardName=ZyXEL-NSA220-DDR1
PID hash table entries: 1024 (order: 10, 4096 bytes)

~~~~ timer init
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 125952KB available (3109K code, 612K data, 120K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16

-------------------nmv_init--------------------------------------------------
Jackson boardId=00000014
0x10100  1=00820473
0x10100  1=00820473
0x10100  2=00820473
...................mvCpuIfInit
 config_device_cs Error : Unknown board

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 128MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size  64MB
PEX0_IO ....base f2000000, size   1MB
PCI0_MEM ....base e4000000, size  64MB
PCI0_IO ....base f2200000, size  64KB
INTER_REGS ....base f1000000, size   1MB
DEVICE_CS0 ....base fa000000, size  16MB
DEVICE_CS1 ....base f0000000, size  16MB
DEVICE_CS2 ....base fb000000, size  16MB
DEV_BOOCS ....base f8000000, size  16MB

  Marvell Development Board (LSP Version 1.10.3_DB_NAS)-- ZyXEL-NSA220-DDR1  So2

 Detected Tclk 166000000 and SysClk 166666667
Marvell USB EHCI Host controller #0: c0527a00
Marvell USB EHCI Host controller #1: c0527800
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
use IDMA acceleration in copy to/from user buffers. used channels 2 and 3
Done.
init kernel log netlink done
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
Marvell Gigabit Ethernet Driver 'egiga':
~~~GPIODOR2 F1010100=00820473
~~~~~~~~~~~~~~SMI2 F1072004=00019140
  o Ethernet descriptors in DRAM
  o DRAM SW cache-coherency
  o Checksum offload enabled
  o Loading network interface 'egiga0'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~egiga_init_module ok
Intergrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
  Vendor: SAMSUNG   Model: HD753LJ           Rev: 1AA0
  Type:   Direct-Access                      ANSI SCSI revision: 03
SCSI device sda: 1465149168 512-byte hdwr sectors (750156 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back w/ FUA
SCSI device sda: 1465149168 512-byte hdwr sectors (750156 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back w/ FUA
 sda: sda1 sda2 sda3 sda4
sd 1:0:0:0: Attached scsi disk sda
sd 1:0:0:0: Attached scsi generic sg0 type 0
----cmdline parser init---
physmap platform flash device: 01000000 at f8000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
RedBoot partition parsing not available
mtd: Giving out device 0 to physmap-flash.0
ehci_platform ehci_platform.4523: EHCI Host Controller
ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1
ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000
ehci_platform ehci_platform.4523: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_platform ehci_platform.16781: EHCI Host Controller
ehci_platform ehci_platform.16781: new USB bus registered, assigned bus number 2
ehci_platform ehci_platform.16781: irq 12, io mem 0x00000000
ehci_platform ehci_platform.16781: USB 0.0 started, EHCI 1.00, driver 10 Dec 204
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
USB Universal Host Controller Interface driver v3.0
sl811: driver sl811-hcd, 19 May 2005
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
VFP support v0.3: not present
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
ReiserFS: sda3: found reiserfs format "3.6" with standard journal
ReiserFS: sda3: using ordered data mode
ReiserFS: sda3: journal params: device sda3, size 8192, journal first block 18,0
ReiserFS: sda3: checking transaction log (sda3)
ReiserFS: sda3: replayed 6 transactions in 0 seconds
ReiserFS: sda3: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing init memory: 120K
INIT: version 2.86 booting

   OpenRC 0.2.5 is starting up Gentoo Linux (armv5tejl)

Press I to enter interactive boot mode

 * Mounting /proc ...
 [ ok ]
 * Mounting /sys ...
 [ ok ]
 * Mounting /dev ...
 [ ok ]
 * Starting udevd ...
 [ ok ]
 * Populating /dev with existing devices through uevents ...
 [ ok ]
 * Waiting for uevents to be processed ...
 [ ok ]
 * Mounting /dev/pts ...
 [ ok ]
 * Mounting /dev/shm ...
can't create lock file /etc/mtab~521: Read-only file system (use -n flag to ove)
 [ ok ]
 * Device initiated services:* Caching service dependencies ...
 [ ok ]
 * Setting system clock using the hardware clock [UTC] ...
 [ ok ]
 * Autoloaded 0 module(s)
FATAL: Could not load /lib/modules/2.6.18.6/modules.dep: No such file or directy
 * Checking local filesystems  ...
fsck.jfs version 1.1.12, 24-Aug-2007
processing started: 2/27/2009 19.23.14

Error: Cannot open device /dev/sda6

Usage:  fsck.jfs [-afnpvV] [-j journal_device] [--omit_journal_replay] [--replae

Emergency help:
 -a                 Automatic repair.
 -f                 Force check even if file system is marked clean.
 -j journal_device  Specify external journal device.
 -n                 Check read only, make no changes to the file system.
 -p                 Automatic repair.
 -v                 Be verbose.
 -V                 Print version information only.
 --omit_journal_replay    Omit transaction log replay.
 --replay_journal_only    Only replay the transaction log.
 * Filesystems couldn't be fixed
 [ !! ]
NIT: Sending processes the TERM signal
 * fsck: caught SIGTERM, aborting
 * Setting hardware clock using the system clock [UTC] ...
 [ ok ]
 * Autoloaded 0 module(s)
FATAL: Could not load /lib/modules/2.6.18.6/modules.dep: No such file or directy
 * Checking local filesystems  ...
fsck.jfs version 1.1.12, 24-Aug-2007
processing started: 2/27/2009 19.23.14

Error: Cannot open device /dev/sda6

Usage:  fsck.jfs [-afnpvV] [-j journal_device] [--omit_journal_replay] [--replae

Emergency help:
 -a                 Automatic repair.
 -f                 Force check even if file system is marked clean.
 -j journal_device  Specify external journal device.
 -n                 Check read only, make no changes to the file system.
 -p                 Automatic repair.
 -v                 Be verbose.
 -V                 Print version information only.
 --omit_journal_replay    Omit transaction log replay.
 --replay_journal_only    Only replay the transaction log.
 * Filesystems couldn't be fixed
 [ !! ]
NIT: Sending processes the TERM signal
 * fsck: caught SIGTERM, aborting
 * Setting hardware clock using the system clock [UTC] ...
 [ ok ]
Give root password for maintenance
(or type Control-D to continue):
Login incorrect.
Give root password for maintenance
(or type Control-D to continue):

Hello, welcome to (none), running
                                         .
   .vir.                                d$b
.d$$$$$$b.    .cd$$b.     .d$$b.   d$$$$$$$$$$$b  .d$$b.      .d$$b.
$$$$( )$$$b d$$$()$$$.   d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b.  .$$$$$$$b.
Q$$$$$$$$$$B$$$$$$$$P"  d$$$PQ$$$$b.   $$$$.   .$$$P` `$$$ .$$$P` `$$$
  "$$$$$$$P Q$$$$$$$b  d$$$P   Q$$$$b  $$$$b   $$$$b..d$$$ $$$$b..d$$$
 d$$$$$$P"   "$$$$$$$$ Q$$$     Q$$$$  $$$$$   `Q$$$$$$$P  `Q$$$$$$$P
$$$$$$$P       `"""""   ""        ""   Q$$$P     "Q$$$P"     "Q$$$P"
`Q$$P"                                  """

Linux armv5tejl 2.6.18.6 (compiled #2 Fri Feb 27 21:21:58 EET 2009)

Processor       : ARM926EJ-Sid(wb) rev 0 (v5l)
BogoMIPS        : 330.95
RAM             :  123 MB
Swap            :  0 MB
Uptime          : 19:24:29 up 1 min, 0 users, load average: 0.26, 0.16, 0.0
Logged on as    : root on /dev/console since Fri Feb 27 19:24:29 Local time zon9
Users logged in :  # users=0

(none) ~ # date
Fri Feb 27 19:24:57 Local time zone must be set--see zic manual page 2009
(none) ~ #

DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#2 2009-09-22 11:20:17

localhorst24
New member
Registered: 2009-09-22
Posts: 1

Re: tftp boot

Hi Sala!

I have tried to boot over TFTP... but i receive only a Kernel-Panic sad what is sda3 ?

Code:

Hit ESC key to stop boot-up kernel...  3
ATCmd> atip 192.168.71.222,192.168.71.220,255.255.255.0
        MAC Address is 00:19:CB:42:17:DE
        Host/Local IP is 192.168.71.220
        Server/Remote IP is 192.168.71.222
        Net Mask is 255.255.255.0

OK

ATCmd> attc 0x989680,/zImage.ras

Using MAC Address 00:19:CB:42:17:DE
Server IP is 192.168.71.222; Local IP is 192.168.71.220
Filename: /zImage.ras; Load address: 0x00989680

################################################################################################################################################
Received 1467848 (0x1665c8) bytes
OK

ATCmd> atgo 0x989680
Jump to address 0x00989680...
Uncompressing Linux............................................................................................... done, booting the kernel.
Linux version 2.6.18.6 (sala@dunst) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-161) ) #1 Thu Sep 3 17:59:47 EEST 2009
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ), cr=b0053177
Machine: MV-88fxx81
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
end_pfn -> 0x8000
node == 0x0, initrd_node = 0xfffffffe

 mv_map_io
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
Built 1 zonelists.  Total pages: 32768
Kernel command line: rootfstype=reiserfs root=/dev/sda3 mtdparts=physmap-flash.0:15M(ras),896k(etc),-(bootbase) console=ttyS0,115200n8 mem=128M init=/sbin/init
--------
init irq----------------------------------------------------------------
boardInfoTbl[0].boardName=ZyXEL-NSA220-DDR1
PID hash table entries: 1024 (order: 10, 4096 bytes)

~~~~ timer init
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126848KB available (2380K code, 517K data, 100K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16

-------------------nmv_init--------------------------------------------------
Jackson boardId=00000014
0x10100  1=00820473
0x10100  1=00820473
0x10100  2=00820473
...................mvCpuIfInit
 config_device_cs Error : Unknown board

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 128MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size  64MB
PEX0_IO ....base f2000000, size   1MB
PCI0_MEM ....base e4000000, size  64MB
PCI0_IO ....base f2200000, size  64KB
INTER_REGS ....base f1000000, size   1MB
DEVICE_CS0 ....base fa000000, size  16MB
DEVICE_CS1 ....base f0000000, size  16MB
DEVICE_CS2 ....base fb000000, size  16MB
DEV_BOOCS ....base f8000000, size  16MB

  Marvell Development Board (LSP Version 1.10.3_DB_NAS)-- ZyXEL-NSA220-DDR1  Soc: 88F5182 A2

 Detected Tclk 166000000 and SysClk 166666667
Marvell USB EHCI Host controller #0: c0456a00
Marvell USB EHCI Host controller #1: c0456800
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
use IDMA acceleration in copy to/from user buffers. used channels 2 and 3
Done.
init kernel log netlink done
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 2048K size 1024 blocksize
Marvell Gigabit Ethernet Driver 'egiga':
~~~GPIODOR2 F1010100=00820473
~~~~~~~~~~~~~~SMI2 F1072004=00019140
  o Ethernet descriptors in DRAM
  o DRAM SW cache-coherency
  o Checksum offload enabled
  o Loading network interface 'egiga0'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~egiga_init_module ok
Intergrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
  Vendor: SAMSUNG   Model: HD501LJ           Rev: CR10
  Type:   Direct-Access                      ANSI SCSI revision: 03
  Vendor: SAMSUNG   Model: HD501LJ           Rev: CR10
  Type:   Direct-Access                      ANSI SCSI revision: 03
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back w/ FUA
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back w/ FUA
 sda: sda1 sda2
sd 0:0:0:0: Attached scsi disk sda
SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
sdb: Write Protect is off
SCSI device sdb: drive cache: write back w/ FUA
SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
sdb: Write Protect is off
SCSI device sdb: drive cache: write back w/ FUA
 sdb: sdb1 sdb2
sd 1:0:0:0: Attached scsi disk sdb
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: Attached scsi generic sg1 type 0
----cmdline parser init---
physmap platform flash device: 01000000 at f8000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
3 cmdlinepart partitions found on MTD device physmap-flash.0
Creating 3 MTD partitions on "physmap-flash.0":
0x00000000-0x00f00000 : "ras"
mtd: Giving out device 0 to ras
0x00f00000-0x00fe0000 : "etc"
mtd: Giving out device 1 to etc
0x00fe0000-0x01000000 : "bootbase"
mtd: Giving out device 2 to bootbase
ehci_platform ehci_platform.4523: EHCI Host Controller
ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1
ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000
ehci_platform ehci_platform.4523: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_platform ehci_platform.16781: EHCI Host Controller
ehci_platform ehci_platform.16781: new USB bus registered, assigned bus number 2
ehci_platform ehci_platform.16781: irq 12, io mem 0x00000000
ehci_platform ehci_platform.16781: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
USB Universal Host Controller Interface driver v3.0
sl811: driver sl811-hcd, 19 May 2005
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
VFP support v0.3: not present
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
VFS: Cannot open root device "sda3" or unknown-block(8,3)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3)

Greets,
Chris.

Last edited by localhorst24 (2009-09-22 11:21:21)

Offline

 

#3 2009-09-22 11:42:18

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: tftp boot

sda3 is partition on a single disk which must contain some arm eabi compatible linux. For example nas-central genlink (I think there is some debian port also).
If you have a single disk, then sda3 is 3rd partition. No mather which bay. If you have two disks then sda3 is 3rd partition on disk which is in first bay (bay closest to serial port). So for testing it is best to remove disk from bay 2 and place disk from bay 1 to bay 2 in order to use some serial cables. At least for me. If you have smaller connector for serial cable then you can have disks on both bays at the same time with serial cable.

In your setup, you can maybe resize (backup data before doing so) your sda2 (and sdb2) to make room for sda3. Custom hddboot linux needs just one partition. sda1 is probably swap in your setup. If not then you can even setup swap to loopback file or make sda4 for swap.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#4 2009-09-22 14:10:26

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: tftp boot

Wouldn't it work to remove both disks and use a usb stick instead?

Offline

 

#5 2009-09-22 16:15:55

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: tftp boot

Mijzelf wrote:

Wouldn't it work to remove both disks and use a usb stick instead?

It might, but I have not tested it. If someone is interested then I can precompile couple of kernel images with different root device, so you would not need to remove any disks if usb stick is working.

Also I have always tough that it might be possible to patch kernel boot setup part that if would try all devices and maybe fail back to original firmware mtd device if no other system is found. But it's just me thinking crazy big_smile


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#6 2009-09-23 12:44:29

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: tftp boot

Your kernel searches for it's own rootfs? So when I pull the initrd from Fonz' reloaded.ko, and use it to load your kernel, it should work (given that I have a valid image on sda3)?

Offline

 

#7 2009-09-23 16:08:37

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: tftp boot

Mijzelf wrote:

Your kernel searches for it's own rootfs? So when I pull the initrd from Fonz' reloaded.ko, and use it to load your kernel, it should work (given that I have a valid image on sda3)?

No it does not search it, it just looks it from sda3 and if its not there then it panics.
Did you get reloaded.ko working? I have still not tested it. My main goal was to get hdd boot working asp. But if we could patch kernel boot setup process then you could safely flash modified firmware and boot from hdd, if it has system on it or boot from flash if hdd does not have valid system on it. It should be possible because kernel is not really crashing in case of no rootfs, it just does not know what to do next. Maybe simple loop and new rootfs device could fix that.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#8 2009-09-23 16:39:47

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: tftp boot

sala wrote:

Did you get reloaded.ko working?

No. I still have no serial access to my box, so I wasn't able to find out where it goes wrong. The system just silently dies.

But if we could patch kernel boot setup process then you could safely flash modified firmware and boot from hdd.

With reloaded you wouldn't have to flash. If you could patch the kernel to boot from sdc1, or better yet, commandline specified, the rootfs could be on stick, together with reloaded and the interception script, and without stick you'll have your virginal box back. No need to void the warranty.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB