Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Oct 25, 2014 3:39 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Tue Mar 25, 2008 2:54 pm 
Offline
Newbie

Joined: Wed Jan 16, 2008 4:46 am
Posts: 17
I'm making progress, step by step, to getting my KB Pro going. I'm trying to install Freelink by the manual method described on the wiki. I have all of the images and files in partitions on my hard drive but can't get it to boot from the boot partition at /dev/sda1. I've changed the Uboot variables per the instructions but it seems to find a uImage file that doesn't match what I saved to the boot partition. And whatever it finds has a bad CRC. Any suggestions?

The Uboot variables seem to change back. I set bootcmd per the wiki page and save them but it goes back to the default tftp command after a failed boot attempt.

On the boot partition, where it should be booting from, there is a boot.log file. Contents are:
Code:
** /mnt/etc/hddrootmode missing, use initrd mode. **


Fragment of the console log around the failed kernel load follows. Why does it load from hda1 rather than sda1?
Code:
Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0: OK
Model: MAXTOR STM3320620AS                    Firm: 3.AAE    Ser#:             5QF57K4R
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

Using device ide0, partition 1

Loading from block device ide device 0, partition 1: Name: hda1
  Type: U-Boot  File:/boot/uImage

0 bytes read
<<stop_sound>>
## Booting image at 00100000 ...
   Image Name:   Linux-2.6.12.6-arm1
   Created:      2007-04-10  13:45:13 UTC
   Image
Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1736548 Bytes =  1.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC
bootm fail.
<<system_not_found>>
Using egiga0 device
TFTP from server 192.168.161.14; our IP address is 192.168.161.32
Filename 'uImage.buffalo'.
Load address: 0x100000


Top
 Profile  
 
PostPosted: Tue Mar 25, 2008 8:55 pm 
Offline
Moderator
User avatar

Joined: Thu Apr 06, 2006 1:33 pm
Posts: 1082
Location: United States of America
Can you do a
Code:
printenv

at the uboot prompt and post it?

Also can you get back to the original uboot settings (booting into the default kuropro OS) and examine the hard drive to make sure that you linked the uImage file, and verify the contents of /boot

_________________
-Ramuk

LinkStation HG *250 Uboot - Foonas-EM - Freelink
Kuro HG *750 Uboot - Foonas-EM - Debian Squeeze
Kuro HD *60 Uboot - Foonas-EM - Debian Squeeze (For Sale)
KuroPro *2TB Debian Lenny Armel- Kernel 2.6.26
KuroPro *1TB Debian Lenny Armel- Kernel 2.6.25.6


Top
 Profile  
 
PostPosted: Wed Mar 26, 2008 3:27 am 
Offline
Newbie

Joined: Wed Jan 16, 2008 4:46 am
Posts: 17
When the boot to /boot/uImage fails, it falls back to booting from tftp and I can login. I mount the boot partition and can confirm the following

Code:
-rw-r--r--    1 root     root           53 Mar 25 19:08 boot.log
drwxr-xr-x    2 root     root         1024 Mar 24 21:16 lost+found
lrwxrwxrwx    1 root     root           26 Mar 24 20:50 uImage -> uImage-2.6.16.57-arm5_oabi
-rw-r--r--    1 500      500       1849068 Mar 24 20:15 uImage-2.6.16.57-arm5_oabi

The file size and checksum match the kernel image that I intend to boot from.

One more data point is that when I interrupt to the interactive Uboot - I get a warning siren on the beeper and the error light blinks - a sequence of 6 blinks.

printenv gives me the following. To boot to the HDD, I modify the boot command according to the wiki page:
Code:
setenv bootcmd 'ide reset;ext2load ide 0:1 0x00100000 /boot/uImage;setenv bootargs console=ttyS0,115200 root=/dev/sda1 rw; bootm 0x00100000'
saveenv
boot

Variables before I modify:
Code:
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/nfs/arm
cpuName=926
CASset=min
MALLOC_len=4
bootargs_end=:::DB88FXX81:eth0:none
ethact=egiga0
buffalo_ver=BOOTVER=1.091
build_time=18:10:02
bootargs_base=console=ttyS0,115200
bootargs_root=root=/dev/mtdblock2 rw panic=5
bootargs=$(bootargs_base) $(bootargs_root) $(buffalo_ver)
nand_uImage_offset=20000
default_kernel_addr=0x00100000
default_initrd_addr=0x02000000
def_tftp=tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root)  rw init)
nand_boot=yes
ethaddr=00:16:01:A4:E5:C9
filesize=1a7ef4
fileaddr=100000
ipaddr=192.168.161.32
serverip=192.168.161.14
kernel=uImage.buffalo
initrd=initrd.buffalo
stdin=serial
stdout=serial
stderr=serial
enaMonExt=no
enaFlashBuf=yes
enaCpuStream=no
ethprime=egiga0
bootdelay=3
disaMvPnp=no
overEthAddr=no
usb0Mode=host
usb1Mode=host
force_tftp=1
bootcmd=tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root)  rw initr)

Environment size: 1226/4092 bytes
Marvell>> <INTERRUPT>
Marvell>>

After modified, they are the following. Booting with these results in the CRC error in my original post.
Code:
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/nfs/arm
cpuName=926
CASset=min
MALLOC_len=4
bootargs_end=:::DB88FXX81:eth0:none
ethact=egiga0
buffalo_ver=BOOTVER=1.091
build_time=18:10:02
bootargs_base=console=ttyS0,115200
bootargs_root=root=/dev/mtdblock2 rw panic=5
bootargs=$(bootargs_base) $(bootargs_root) $(buffalo_ver)
nand_uImage_offset=20000
default_kernel_addr=0x00100000
default_initrd_addr=0x02000000
def_tftp=tftp $(default_kernel_addr) $(kernel); tftp $(default_initrd_addr) $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root)  rw init)
nand_boot=yes
ethaddr=00:16:01:A4:E5:C9
filesize=1a7ef4
fileaddr=100000
ipaddr=192.168.161.32
serverip=192.168.161.14
kernel=uImage.buffalo
initrd=initrd.buffalo
stdin=serial
stdout=serial
stderr=serial
enaMonExt=no
enaFlashBuf=yes
enaCpuStream=no
ethprime=egiga0
bootdelay=3
disaMvPnp=no
overEthAddr=no
usb0Mode=host
usb1Mode=host
force_tftp=1
bootcmd=ide reset;ext2load ide 0:1 0x00100000 /boot/uImage;setenv bootargs console=ttyS0,115200 root=/dev/sda1 rw; bootm 0x00100000

Environment size: 1120/4092 bytes


Top
 Profile  
 
PostPosted: Wed Mar 26, 2008 6:03 am 
Offline
Moderator
User avatar

Joined: Thu Apr 06, 2006 1:33 pm
Posts: 1082
Location: United States of America
hmmmm I'm wondering why this is not working for you... This is my bootup sequence

Code:
Orion1   CPU =  Low

=== KURO U-Boot. ===
 ** LOADER **
 ** KUROBOX BOARD: KURO_BOX  LE (CFG_ENV_ADDR=fffff000)


U-Boot 1.1.1 (Apr 10 2007 - 18:10:08) Marvell version: 1.12.1 - TINY

DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB
[256kB@fffc0000] Flash: 256 kB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done
NAND: 256 MB

Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 500Mhz
Orion 1 streaming disabled
SysClock = 250Mhz , TClock = 166Mhz


USB 0: host mode
USB 1: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000
Net:   egiga0 [PRIME]
Using 88E1118 phy
Found boot image
hit any key to switch tftp boot.
Hit any key to stop autoboot:  0
<<system_bootend>>
Hit any key to stop autoboot:  0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0: OK
Model: TOSHIBA MK8034GSX                        Firm: AH303B   Ser#:            Z6CQT38XT
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76319.0 MB = 74.5 GB (156301488 x 512)

Using device ide0, partition 1

Loading from block device ide device 0, partition 1: Name: hda1
  Type: U-Boot  File:/boot/uImage

1849068 bytes read
<<stop_sound>>
## Booting image at 00100000 ...
   Image Name:   Linux-2.6.16.57-arm5
   Created:      2007-12-30  16:10:52 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1849004 Bytes =  1.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

arg:console=ttyS0,115200 root=/dev/sda1 rw
CONFIG_BUFFALO_PLATFORM CONFIG_BUFFALO_LINKSTATION_LSGL ---
Uncompressing Linux...................................................................................................................... done, booting the kern
el.
Linux version 2.6.16.57-arm5 (root@LS-GL7D6) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #2 Sun Dec 30 11:37:40 BRT 2007
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ)
Machine: MV-88fxx81
Using UBoot passing parameters structure
Sys Clk = 250000000, Tclk = 166664740


- Warning - This LSP release was tested only with U-Boot release 1.7.3

Memory policy: ECC disabled, Data cache writeback
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
Kernel command line: console=ttyS0,115200 root=/dev/sda1 rw
PID hash table entries: 1024 (order: 10, 16384 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 128MB 0MB 0MB 0MB = 128MB total
Memory: 125952KB available (3197K code, 441K data, 100K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
FLASH boardId = 12
Flash bankwidth 1, base ff800000, size 400000
BUFFALO LS_GL FLASH size 4096[KB]

  Marvell Development Board (LSP Version 1.7.8_NAS)-- BUFFALO_BOARD_LS_GL

 Detected Tclk 166664740 and SysClk 250000000
Marvell USB EHCI Host controller #0: c052be00
Marvell USB EHCI Host controller #1: c052bc00
pexBarOverlapDetect: winNum 2 overlap current 0
mvPexInit:Warning :Bar 2 size is illigal
it will be disabled
please check Pex and CPU windows configuration
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
use IDMA acceleration in copy to/from user buffers. used channels 2 and 3
Done.
cesadev_init(c00111f0)
mvCesaInit: sessions=640, queue=32, pSram=f0000000
Fast Floating Point Emulator V0.9 (c) Peter Teichmann.
JFFS version 1.0, (C) 1999, 2000  Axis Communications AB
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
JFS: nTxBlock = 984, nTxLock = 7878
SGI XFS with large block numbers, no debug enabled
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
serial8250: ttyS1 at MMIO 0x0 (irq = 4) is a 16550A
RAMDISK driver initialized: 3 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
Marvell Gigabit Ethernet Driver 'egiga':
  o Ethernet descriptors in DRAM
  o DRAM SW cache-coherency
  o Checksum offload enabled
  o Loading network interface ** egiga_init_module (0)
'eth0'
Intergrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
** BUFFALO Disable Command Queuing Function [0 0] **
  Vendor: TOSHIBA   Model: MK8034GSX         Rev: AH30
  Type:   Direct-Access                      ANSI SCSI revision: 03
Linux IAL (ERROR) : retry command host=0, bus=0 SCpnt = c7c65b60
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
physmap flash device: 400000 at ff800000
>jedec_probe
Found: SST 39LF020
phys_mapped_flash: Found 1 x8 devices at 0x0 in 8-bit bank
number of JEDEC chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
ehci_platform ehci_platform.4523: EHCI Platform 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 Platform 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 v2.3
Initializing USB Mass Storage driver...
usb 2-1: new high speed USB device using ehci_platform and address 2
usb 2-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
Kernel event proc (C) BUFFALO INC. V.1.00 installed.
MICON ctrl (C) BUFFALO INC. V.1.00 installed.
MICON V2 (C) BUFFALO INC. V.1.00 installed.
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
> exit initrd_load
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
Freeing init memory: 100K
INIT: version 2.86 booting
* .udev/ already exists on the static /dev!
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...SAL (ERROR)  0 0 0 :Scsi command completed. pScb c07b1b40, ScsiStatus 2 completionStatus MV_SCSI_COMPLETION_BAD_SCSI_C
OMMAND
SAL (ERROR) CDB:12 1 0 0 fe 0
SAL (ERROR) Sense Data:70 0 5 0 0 0 0 c 0 0 0 0 24 0 0 0 0 0 0 0
SAL (ERROR)  0 0 0 :Scsi command completed. pScb c07b1b40, ScsiStatus 2 completionStatus MV_SCSI_COMPLETION_BAD_SCSI_COMMAND
SAL (ERROR) CDB:12 1 0 0 fe 0
SAL (ERROR) Sense Data:70 0 5 0 0 0 0 c 0 0 0 0 24 0 0 0 0 0 0 0
done.
  Vendor: HY-DDN40  Model: INIC1610          Rev: 3.02
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: Attached scsi disk sdb
sd 2:0:0:0: Attached scsi generic sg1 type 0
Waiting for /dev to be fully populated...done.
Setting parameters of disc: (none).
Activating swap:swapon on /dev/sda2
Adding 506036k swap on /dev/sda2.  Priority:-1 extents:1 across:506036k
.
Setting the system clock..
System Clock set. Local time: Wed Mar 26 05:12:15 UTC 2008.
Cleaning up ifupdown....
Loading device-mapper supportdevice-mapper: 4.5.0-ioctl (2005-10-04) initialised: dm-devel@redhat.com
.
Will now check all file systems.
fsck 1.40-WIP (14-Nov-2006)
Checking all file systems.
Done checking file systems.
A log is being saved in /var/log/fsck/checkfs if that location is writable.
Setting kernel variables...done.
Will now mount local filesystems:mount: none already mounted or /dev/pts busy
mount: according to mtab, devpts is already mounted on /dev/pts
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT3 FS on sda3, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
 failed!
Will now activate swapfile swap:done.
Cleaning /tmp...done.
Cleaning /var/run...done.
Cleaning /var/lock...done.
Setting up resolvconf...done.
Setting up networking....
* /etc/network/options is deprecated (see README.Debian of netbase).
Setting up IP spoofing protection...done (rp_filter).
Configuring network interfaces...Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

eth0: link down
Listening on LPF/eth0/00:16:01:a4:e1:4a
Sending on   LPF/eth0/00:16:01:a4:e1:4a
Sending on   Socket/fallback
eth0: link up<5>, full duplex<5>, speed 100 Mbps<5>
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
....Bringing up static interface
Start services: micro_evtd
Starting kernelmon:Initializing random number generator...done.
INIT: Entering runlevel: 2
grep: /boot/linkstation_release: No such file or directory
err: RecvPacket: readlen=0.
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Updating the operating system logo...done.
* Not starting internet superserver: no services enabled.
Starting Samba daemons: nmbd smbd.
Starting OpenBSD Secure Shell server: sshd.
Starting NTP server: ntpd.
Starting periodic command scheduler: crond.
Running local boot scripts (/etc/rc.local).


you did use ext3 for your partitions I assume?


Also the way I set things up on /dev/sda1

/boot - contains the kernel etc
Code:
root@XXXXXXXXX:/boot# ls -la
total 5344
drwxr-xr-x  2 root root     4096 Mar 26 00:47 .
drwxr-xr-x 18  500 users    4096 Feb 14 00:31 ..
-rw-r--r--  1 root root       29 Mar 26 00:49 rootfs_ok
lrwxrwxrwx  1 root root       26 Mar 26 00:47 uImage -> uImage-2.6.16.57-arm5_oabi
-rwxr-xr-x  1 root root  1849068 Feb 13 14:57 uImage-2.6.16.57-arm5_oabi
-rwxr-xr-x  1 root root  1798108 Feb 13 14:57 uImage_2.6.12.6-arm1-mb_v1


and
I untarred the rootfs into
/
Code:
root@XXXXXXXXX:/# ls -la
total 64
drwxr-xr-x 18    500 users   4096 Mar 26 00:52 .
drwxr-xr-x 18    500 users   4096 Mar 26 00:52 ..
drwxrwxrwx  2 nobody nogroup 4096 Feb 29 21:27 bin
drwxr-xr-x  2 root   root    4096 Mar 26 00:47 boot
drwxr-xr-x 10 root   root    4096 Dec  7 15:11 buffalo
drwxr-xr-x 12 root   root    3280 Mar 26 00:50 dev
drwxrwxrwx 57 nobody nogroup 4096 Mar 26 00:50 etc
drwxrwxrwx  3 root   root    4096 Dec  7 15:11 home
drwxr-xr-x  2 root   root    4096 Dec 24  2006 initrd
drwxr-xr-x 12 root   root    8192 Feb 29 21:36 lib
drwxr-xr-x  5 root   root    4096 Dec  8 00:37 mnt
dr-xr-xr-x 65 root   root       0 Dec 31  1969 proc
drwxr-xr-x  4 root   root    4096 Feb 29 13:35 root
-rw-r--r--  1 root   root      29 Feb 14 00:34 rootfs_ok
drwxr-xr-x  2 root   root    4096 Feb 29 21:55 sbin
drwxr-xr-x 10 root   root       0 Dec 31  1969 sys
drwxrwxrwt  3 root   root      80 Mar 26 00:50 tmp
drwxr-xr-x 11 root   root    4096 Dec  7 15:12 usr
drwxrwxrwx 17 nobody nogroup 4096 Feb 13 02:06 var

This way everything is on ONE partition rather than a separate boot partition and separate rootfs partiton.

_________________
-Ramuk

LinkStation HG *250 Uboot - Foonas-EM - Freelink
Kuro HG *750 Uboot - Foonas-EM - Debian Squeeze
Kuro HD *60 Uboot - Foonas-EM - Debian Squeeze (For Sale)
KuroPro *2TB Debian Lenny Armel- Kernel 2.6.26
KuroPro *1TB Debian Lenny Armel- Kernel 2.6.25.6


Top
 Profile  
 
PostPosted: Wed Mar 26, 2008 1:30 pm 
Offline
Newbie

Joined: Fri Aug 24, 2007 6:58 pm
Posts: 6
A few months ago, I re-installed FreeLink from scratch and upgraded the kernel by connecting the disk to another machine and performing the following procedure:

1. Delete all partitions from target disk.
2. Create the following partition table on target disk:
Code:
Device        Partition Type              Size                 fdisk Command
/dev/sda1     Linux [83]                  16 MB                n | p | 1 | <enter> | +16M
/dev/sda2     Linux [83]                  40 GB                n | p | 2 | <enter> | +40000M
/dev/sda4     W95 Ext'd (LBA) [f]         Remainder            n | e | 4 | <enter> | <enter> | t | 4 | f
/dev/sda5     Linux Swap [82]             300 MB               n | l | <enter> | +300M | t | 5 | 82
/dev/sda6     Linux [83]                  Remainder            n | l | <enter> | <enter>

3. Format all the partitions:
Code:
mkfs.ext3 /dev/sda1
mkfs.ext3 /dev/sda2
mkswap /dev/sda5
mkfs.jfs -c /dev/sda6


4. Install Baselayout
Code:
Download http://downloads.nas-central.org/LSPro_ARM9/Distributions/Freelink/FreeLink_arm9-1.0rev2.zip to root partition
Extract hddrootfs.img with password: IeY8omJwGlGkIbJm2FH_MV4fLsXE8ieu0gNYwE6Ty
rename hddrootfs.buffalo.updated to hddrootfs.buffalo.updated.tgz
tar xvfzp hddrootfs.buffalo.updated.tgz


5. Update Kernel
Code:
Download http://downloads.nas-central.org/Users/colchaodemola/uImage-2.6.16.57-arm5_oabi to /boot partition
mv uImage.buffalo uImage.buffalo_old
ln -s uImage-2.6.16.57-arm5_oabi uImage.buffalo


6. Install Modules
Code:
download http://downloads.nas-central.org/Users/colchaodemola/2.6.16.57-arm5_oabi_modules.tgz to root partition
tar xzvfp 2.6.16.57-arm5_oabi_modules.tgz


7. Configure /etc/fstab to look like:
Code:
# /etc/fstab: static file system information.
# <file system> <mount point>   <type>  <options>               <dump>  <pass>
proc            /proc      proc    defaults                            0 0
none            /dev/pts   devpts  gid=5,mode=20                       0 0
tmpfs           /tmp       tmpfs   size=10M,mode=1777                  0 0
/dev/sda5       swap       swap    defaults                            0 0
/dev/sda1       /boot      ext3    defaults,noatime,errors=remount-ro  0 1
/dev/sda6       /mnt/disk1 jfs     defaults,noatime,nodiratime         0 2


8. Fix Kernelmon script: change a line in the the /usr/local/sbin/kernelmon script: "cat /proc/driver/kernevnt" to "cat /proc/buffalo/kernevnt"

After the above procedure, I rebooted and everything worked fine. Hopefully you will find this helpful in getting your box up and running.


Top
 Profile  
 
PostPosted: Wed Mar 26, 2008 3:09 pm 
Offline
Newbie

Joined: Wed Jan 16, 2008 4:46 am
Posts: 17
Some good pointers, thanks. I'll try them over the next few days.

On one page somewhere, there is a caveat to completely erase a disk which has already had an installation. Something about mysteriously finding old files. Maybe that's what's going on here.


Top
 Profile  
 
PostPosted: Wed Mar 26, 2008 3:33 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
mmclaugh`s post is a good one.

someone should put it in the wiki. its doing the same as http://buffalo.nas-central.org/index.ph ... om_scratch
but from a different machine. its preparing the hdd without the need of the lsupdater.

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
 Profile  
 
PostPosted: Wed Mar 26, 2008 8:59 pm 
Offline
Moderator
User avatar

Joined: Thu Apr 06, 2006 1:33 pm
Posts: 1082
Location: United States of America
He did it a little differently though, his method uses separate partitons for rootfs and for the uImage this would require a little bit different set of uboot settings. But his partitioning tutorial is perfect for such a setup. :)

edit: hmm I probably should just change that wiki page to this.

_________________
-Ramuk

LinkStation HG *250 Uboot - Foonas-EM - Freelink
Kuro HG *750 Uboot - Foonas-EM - Debian Squeeze
Kuro HD *60 Uboot - Foonas-EM - Debian Squeeze (For Sale)
KuroPro *2TB Debian Lenny Armel- Kernel 2.6.26
KuroPro *1TB Debian Lenny Armel- Kernel 2.6.25.6


Top
 Profile  
 
PostPosted: Thu Mar 27, 2008 1:26 pm 
Offline
Newbie

Joined: Fri Aug 24, 2007 6:58 pm
Posts: 6
FYI, for my Kurobox Pro, I did not make any changes to uboot settings. Of course, the reinstall was done after following the initial FreeLink install. The partitions are setup similar to the initial install except I removed XFS and increased the root partition size from 3 to 40 GB. Also, if I were to reinstall again, I would have added an additional step to fix the permission issues by running the script at:

http://buffalo.nas-central.org/forums/viewtopic.php?f=39&t=2153&st=0&sk=t&sd=a&start=285


Top
 Profile  
 
PostPosted: Thu Mar 27, 2008 3:31 pm 
Offline
Newbie

Joined: Wed Jan 16, 2008 4:46 am
Posts: 17
I'm still having problems pointing to and loading the right kernel. The log identifies the kernal as Linux-2.6.12.6-arm1 but the uImage I put in sda1 is uImage-2.6.16.57-arm5_oabi. See my log fragment of the original post. Where can this kernel be coming from? Flash?

Agree that mmclough's post would be a great wiki addition. I have a few question which I mingled in Bold below. Note that I am using this process while booted by tftp.

1. Delete all partitions from target disk. OK
2. Create the following partition table on target disk. OK
3. Format all the partitions:
Code:
mkfs.ext3 /dev/sda1
mkfs.ext3 /dev/sda2
mkswap /dev/sda5
mkfs.jfs -c /dev/sda6

I didn't have mkfs.jfs so used mkfs.etx3 for partition 6.

4. Install Baselayout
5. Update Kernel
6. Install Modules
For steps 4, 5 and 6, I assume I can mount sda2 (/) to /mnt/disk1 and sda1(/boot) to /mnt/disk1/boot. Is this correct?

7. Configure /etc/fstab to look like:
Is this in the sda2 partition (e.g. the / partition mounted to /mnt/disk1 as I describe above.

8. Fix Kernelmon script: change a line in the the /usr/local/sbin/kernelmon script: "cat /proc/driver/kernevnt" to "cat /proc/buffalo/kernevnt"
Same question as in 7. - on the target filesystems, not the ramdisk?


Top
 Profile  
 
PostPosted: Thu Mar 27, 2008 5:08 pm 
Offline
Moderator
User avatar

Joined: Thu Apr 06, 2006 1:33 pm
Posts: 1082
Location: United States of America
I think this all boils down to the uboot settings that have been used. With this setup (uImage in /dev/sda1 and rootfs in /dev/sda2) you need different uboot settings
Code:
setenv default_kernel_addr 0x00100000
setenv bootargs_base console=ttyS0,115200
setenv bootargs_root root=/dev/sda2 rw
setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver)
setenv bootcmd 'ext2load ide 0:1 $(default_kernel_addr)/$(kernel); bootm $(default_kernel_addr)'

see:
http://buffalo.nas-central.org/index.ph ... .2Fsda2.29

_________________
-Ramuk

LinkStation HG *250 Uboot - Foonas-EM - Freelink
Kuro HG *750 Uboot - Foonas-EM - Debian Squeeze
Kuro HD *60 Uboot - Foonas-EM - Debian Squeeze (For Sale)
KuroPro *2TB Debian Lenny Armel- Kernel 2.6.26
KuroPro *1TB Debian Lenny Armel- Kernel 2.6.25.6


Top
 Profile  
 
PostPosted: Sat Mar 29, 2008 3:56 am 
Offline
Newbie

Joined: Wed Jan 16, 2008 4:46 am
Posts: 17
Got it. I should have paid attention to the arguments and adapted them to my partition scheme. My boot kernel is /uImage.buffalo in sda1 rather than /boot/uImage.buffalo. The following works.

Thanks, everyone. On to the next challenge.
Code:
setenv bootcmd 'ide reset;ext2load ide 0:1 0x00100000 /uImage.buffalo;setenv bootargs console=ttyS0,115200 root=/dev/sda2 rw; bootm 0x00100000'


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Protected by Anti-Spam ACP
Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group