Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Tue Jul 17, 2018 10:08 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 26 posts ]  Go to page Previous 1 2
Author Message
PostPosted: Wed Sep 27, 2017 6:30 pm 
Offline
Newbie
User avatar

Joined: Tue Nov 01, 2016 1:17 pm
Posts: 45
2ig2ag wrote:
No such messages. And I only inserted the first disk.


install midnight commander on Ubuntu machine and copy them
Code:
$ sudo apt-get install mc

run midnight commander
Code:
$ mc

key INS mark files/folders, key F5 copy

Debian with buffalo kernel should run without problems


Top
   
PostPosted: Wed Nov 29, 2017 4:44 pm 
Offline
Newbie
User avatar

Joined: Tue Nov 01, 2016 1:17 pm
Posts: 45
Kernel 4.13.16 Linaro GCC 7.2-2017.11


Top
   
PostPosted: Mon Jun 04, 2018 2:49 pm 
Offline
Newbie

Joined: Fri Mar 21, 2008 3:04 am
Posts: 61
Antonas wrote:

Hi Antonas

Thanks for the instruction and files. I tried them and they worked (although the first start was very very very ... slow). But I have one question, how does the system get to start from the HDD? The bootorder environment variable doesn't contain ide at all. Do you know the start process of this machine? I'm on firmware version 1.34 and my ENV was restored according to this page within debian, using fw_setenv:

http://buffalo.nas-central.org/wiki/Linkstation_400

Before that, my ENV had only a few lines:
Code:
sn=XXXXXXXXXXXXXXXXXXX
eth1addr=XX:XX:XX:XX:XX:XX
serverip=192.168.11.1
ipaddr=192.168.11.150
deviceid=_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SerialNo=XXXXXXXXXXXXXX
EnableNandBoot=1


Top
   
PostPosted: Mon Jun 04, 2018 6:09 pm 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2731
Quote:
Loading file "/initrd.buffalo" from ide device 0:1 (gpt1)
1490135 bytes read
Loading file "/uImage.buffalo" from ide device 0:1 (gpt1)
4922265 bytes read


Top
   
PostPosted: Mon Jun 04, 2018 6:24 pm 
Offline
Newbie

Joined: Fri Mar 21, 2008 3:04 am
Posts: 61
Yeah, but that just proves it does start from the hard disk. But which part of the u-boot configuration leads to that step? That's what I can't understand.


Top
   
PostPosted: Mon Jun 04, 2018 7:10 pm 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2731
Quote:
[idebootcmd=ext2load ide 0:1 0x00100000 /$kernel; ext2load ide 0:1 0x00800000 /$initrd; run bootcommon]

from
http://forum.nas-hilfe.de/buffalo-links ... -t909.html


Top
   
PostPosted: Tue Jun 05, 2018 10:29 am 
Offline
Newbie

Joined: Fri Mar 21, 2008 3:04 am
Posts: 61
Thanks oxygen. I am aware of that. But looking at bootcmd variable,
Code:
bootcmd=for i in $bootorder; do run ${i}bootcmd; done


It just loops over bootorder, which is set as following:
Code:
bootorder=nand fail tftp


So there's no ide mentioned at all.

Maybe the u-boot is hard coded to start from ide first?

BTW, for LS-WVL and LSGL, ide is explicitly specified as the first boot device in bootorder variable


Top
   
PostPosted: Tue Jun 05, 2018 5:35 pm 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2731
LS-QVL FW 1.74

Quote:
root@QVL3:~# nvram -c printenv
1: [baudrate=115200]
2: [loads_echo=0]
3: [ipaddr=192.168.11.150]
4: [serverip=192.168.11.1]
5: [rootpath=/mnt/ARM_FS/]
6: [netmask=255.255.255.0]
7: [run_diag=yes]
8: [stdin=serial]
9: [stdout=serial]
10: [stderr=serial]
11: [console=console=ttyS0,115200]
12: [mainlineLinux=no]
13: [CASset=min]
14: [enaMonExt=no]
15: [enaCpuStream=no]
16: [enaWrAllo=no]
17: [pexMode=RC]
18: [disL2Cache=no]
19: [setL2CacheWT=yes]
20: [disL2Prefetch=yes]
21: [enaICPref=yes]
22: [enaDCPref=yes]
23: [sata_dma_mode=yes]
24: [MALLOC_len=1]
25: [bootargs_root=root=/dev/sda2 rw initrd=0x00800040,12M panic=5]
26: [bootargs_end=:::DB88FXX81:eth0:none]
27: [image_name=uImage]
28: [buffalo_ver=BOOTVER=0.23]
29: [kernel=uImage.buffalo]
30: [initrd=initrd.buffalo]
31: [bootcommon=setenv bootargs $console $bootargs_root $bootargs_func $bootargs_wol $buffalo_ver $mtdparts $tftpboot $nandboot; bootm 0x00100000 0x00800000]
32: [tftpbootcmd=tftp 0x00100000 $kernel; tftp 0x00800000 $initrd; setenv tftpboot tftpboot=yes; run bootcommon]
33: [idebootcmd=ext2load ide 0:1 0x00100000 /$kernel; ext2load ide 0:1 0x00800000 /$initrd; run bootcommon]
34: [mtdids=nand0=nand_mtd]
35: [mtdparts=mtdparts=nand_mtd:0x1000000(boot),0x1e800000(rootfs),0x800000(reserve)]
36: [nandbootcmd=fsload 0x00100000 /$kernel; fsload 0x00800000 /$initrd; setenv nandboot nandboot=yes; run bootcommon]
37: [bootorder=ide nand]
38: [bootcmd=for i in $bootorder; do run ${i}bootcmd; done]
39: [lcd0_enable=0]
40: [lcd0_params=640x480-16@60]
41: [lcd0_bootargs=video-dovefb:lcd0:$(lcd0_params) clcd.lcd0_enable=$(lcd0_enable)]
42: [bootdelay=3]
43: [disaMvPnp=no]
44: [ethmtu=1500]
45: [mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo]
46: [mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500]
47: [usb0Mode=host]
48: [nandEcc=1bit]
49: [netretry=no]
50: [rcvrip=169.254.100.100]
51: [loadaddr=0x02000000]
52: [autoload=no]
53: [enaAutoRecovery=yes]
54: [ethaddr=4C:E6:XXX]
55: [SerialNo=858XXX]


Top
   
PostPosted: Wed Jun 06, 2018 12:18 am 
Offline
Newbie

Joined: Fri Mar 21, 2008 3:04 am
Posts: 61
As you can see, for lsqvl
Quote:
bootorder=ide nand


But for ls421de, at least based on the list on this page,
http://buffalo.nas-central.org/wiki/Linkstation_400
Quote:
bootorder=nand fail tftp


My machine's ENV was restored according to that page and that the new kernel and rootfs are working proves the machine does start from the hdd. That's where I get lost.


Top
   
PostPosted: Sat Jun 09, 2018 9:17 am 
Offline
Newbie
User avatar

Joined: Tue Nov 01, 2016 1:17 pm
Posts: 45
hato wrote:
But for ls421de, at least based on the list on this page,
http://buffalo.nas-central.org/wiki/Linkstation_400


Quote:
bootcmd=for i in $bootorder; do run ${i}bootcmd; done

bootorder=nand fail tftp

nandbootcmd=fsload 0x1200000 /$kernel; fsload 0x2600000 /$initrd; setenv bootsystem nandboot=yes; run bootcommon

bootcommon=setenv bootargs $console $bootargs_root $bootargs_func $buffalo_ver $uboot_date $mtdparts $bootsystem; ;sf protect off; bootm 0x1200000 0x2600000

bootargs_root=root=/dev/sda2 rw initrd=0x2600040 panic=5


I did not experiment with writing parameters ide, usb1, usb2 to bootorder. Although the boot parameters are present

Quote:
idebootcmd=ext2load ide 0:1 0x1200000 /$kernel; ext2load ide 0:1 0x2600000 /$initrd; setenv bootsystem hddboot=yes; run bootcommon

usb1bootcmd=setenv usbActive 0;usb start;fatload usb 0 0x1200000 /boot/uImage370;sf protect off;run bootcommon-u

usb2bootcmd=fatload usb 0 0x1200000 /boot/uImage.buffalo;fatload usb 0 0x2600000 /boot/initrd.buffalo;setenv bootsystem usbboot=yes;run bootcommon

and
Quote:
tftpbootcmd=tftp 0x1200000 $kernel; tftp 0x2600000 $initrd; setenv bootsystem tftpboot=yes; run bootcommon

failbootcmd=bootfail


Probably, the optimal value of the parameter will be

Quote:
bootorder=nand ide usb1 usb2 tftp fail


For USB, probably need to change this usbActive=0


Top
   
PostPosted: Sat Jun 09, 2018 5:13 pm 
Offline
Newbie

Joined: Fri Mar 21, 2008 3:04 am
Posts: 61
Hi Antonas

Thanks. Actually I just got the serial console working and also found out why.

When there is no hdd present, the u-boot environment is just like what is shown on ls400 wiki page. But if there's hdd active, then the u-boot boot order changes to what you just posted:

Quote:
bootorder=ide fail usb1 usb2 tftp


And I think this is an in-memory change (i.e. it is not saved to the spi flash). That's why in debian, I always saw the u-boot boot order without ide (because fw_printenv always read ENV from the flash. It has no chance to get the in-memeory u-boot ENV the boot loader actually uses).

Thanks to both Oxygen8 and you.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 26 posts ]  Go to page Previous 1 2

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


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:
cron
Powered by phpBB® Forum Software © phpBB Limited