Welcome! Log In Create A New Profile

Advanced

Help on getting u-boot replacement on stock Buffalo LS421DE

Posted by protocold 
Help on getting u-boot replacement on stock Buffalo LS421DE
September 06, 2016 07:11AM
I am starting this new thread as I also have a Buffalo LS421DE. I got serial working and here is the boot log:

BootROM 1.08
Booting from SPI flash
DDR3 Training Sequence - Ver 2.3.5
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

=========================
==== Welcome to YANAGI ==
=========================

** LOADER **


U-Boot 2009.08 ( 8月 28 2013 - 21:36:20)Marvell version: 1.1.3 NQ
U-Boot Addressing:
Code: 00600000:006AFFF0
BSS: 006F8360
Stack: 0x5fff70
PageTable: 0x8e0000
Heap address: 0x900000:0xe00000
BUFFALO_BOOTVER=0.13
Board: Buffalo LS-M 88f6710
SoC: MV6710 A1
CPU: Marvell PJ4B v7 UP (Rev 1) LE
CPU @ 1200Mhz, L2 @ 600Mhz
DDR @ 600Mhz, TClock @ 200Mhz
DDR 16Bit Width, FastPath Memory Access
PEX 0: Root Complex Interface, Detected Link X1
PEX 1: Detected No Link.
DRAM: 512 MB
CS 0: base 0x00000000 size 512 MB
Addresses 14M - 0M are saved for the U-Boot usage.
SF: Detected MX25L8006E with page size 256, total 1048576 bytes
NAND: 512 MiB
u-boot envinit tval=e4b4c857
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
AUDIO
TDM
Modules/Interfaces Detected:
SDIO
RGMII0 Phy
RGMII1 Phy
PEX0 (Lane 0)
PEX1 (Lane 1)
SATA0 (Lane 2)
SATA1 (Lane 3)

Marvell Serial ATA Adapter
Integrated Sata device found

MAC Address : 10:6F:3F:xx:xx:xx
MMC: MRVL_MMC: 0
Net: egiga0, egiga1 [PRIME]
hit any key to switch tftp boot.
Hit any key to stop autoboot: 0
switched to TFTP boot.
Hit any key to stop autoboot: 0
BUFFALO>>
Re: Help on getting u-boot replacement on stock Buffalo LS421DE
September 06, 2016 07:12AM
Printenv:

BUFFALO>> printenv
sn=xxxxxxxxxxxxxxxxxxx
eth1addr=10:6F:3F:xx:xx:xx
serverip=192.168.11.1
ipaddr=192.168.11.150
deviceid=_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SerialNo=xxxxxxxxxxxxxx
stdin=serial
stdout=serial
stderr=serial
console=console=ttyS0,115200
enaMonExt=no
pexMode=RC
setL2CacheWT=no
sata_dma_mode=yes
sata_delay_reset=0
enaExtDisk=no
MALLOC_len=5
ethprime=egiga1
netbsd_en=no
vxworks_en=no
bootargs_root=root=/dev/sda2 rw initrd=0x2600040 panic=5
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
image_name=uImage
load_addr=0x02000000
buffalo_ver=BOOTVER=0.13
uboot_date=UBOOT_DATE="2013/08/28"
kernel=uImage.buffalo
initrd=initrd.buffalo
autoload=n
bootcommon=setenv bootargs $console $bootargs_root $bootargs_func $buffalo_ver $uboot_date $mtdparts $bootsystem; ;sf protect off; bootm 0x1200000 0x2600000
bootcommon-u=setenv bootargs $console $bootargs_func $buffalo_ver $uboot_date $mtdparts $bootsystem; ;sf protect off; bootm 0x1200000
tftpbootcmd=tftp 0x1200000 $kernel; tftp 0x2600000 $initrd; setenv bootsystem tftpboot=yes; run bootcommon
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
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:0x2000000(boot),0x1e000000(rootfs)
nandbootcmd=fsload 0x1200000 /$kernel; fsload 0x2600000 /$initrd; setenv bootsystem nandboot=yes; run bootcommon
failbootcmd=bootfail
bootcmd=for i in $bootorder; do run ${i}bootcmd; done
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
disaMvPnp=no
bootdelay=3
ethaddr=00:50:43:b4:57:c8
ethmtu=1500
eth1mtu=1500
mvNetConfig=mv_net_config1=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
usb0Mode=host
usb1Mode=host
usbActive=0
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
enaAutoRecovery=yes
eeeEnable=no
pcieTune=no
hdddelay=7
bootorder=nand fail tftp
ethact=egiga1

Environment size: 2239/65532 bytes
Re: Help on getting u-boot replacement on stock Buffalo LS421DE
September 06, 2016 07:15AM
I have found the attached on google on this link

https://sites.google.com/site/shihsung/88fxxxx-soc

It seems to be a patch to u-boot-2016.05 source to support LS421DE. It seems like the page suggest getting some sort of bin_hdr.bin from stock firmware is needed but I dont fully understand how this works. I tried to follow the instruction but run into many problems, which is probably due to my own setup.

Can you guys help to take a look and build a u-boot binary for LS421DE? I can test u-boot binary here as I have SPI flasher that can read/write the SPI flash.



Edited 1 time(s). Last edit at 09/06/2016 07:48AM by protocold.
Attachments:
open | download - u-boot-2016.05-88fxxxx.patch (240.2 KB)
Re: Help on getting u-boot replacement on stock Buffalo LS421DE
September 06, 2016 03:58PM
protocold Wrote:
-------------------------------------------------------
> I have found the attached on google on this link
>
> https://sites.google.com/site/shihsung/88fxxxx-soc
>
>
> It seems to be a patch to u-boot-2016.05 source to
> support LS421DE. It seems like the page suggest
> getting some sort of bin_hdr.bin from stock
> firmware is needed but I dont fully understand how
> this works. I tried to follow the instruction but
> run into many problems, which is probably due to
> my own setup.
>
> Can you guys help to take a look and build a
> u-boot binary for LS421DE? I can test u-boot
> binary here as I have SPI flasher that can
> read/write the SPI flash.

This patch is too ugly :) there are too many quick and dirty code ported from stock uboot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help on getting u-boot replacement on stock Buffalo LS421DE
September 12, 2016 07:44AM
Then is there any existing u boot from other device that I can try to see if there is enough similarity?!
Re: Help on getting u-boot replacement on stock Buffalo LS421DE
September 12, 2016 07:51AM
Re: Help on getting u-boot replacement on stock Buffalo LS421DE
September 12, 2016 12:59PM
protocold,

There might be one similar enough that I can compile for you. Let me take a look.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help on getting u-boot replacement on stock Buffalo LS421DE
September 13, 2016 03:20PM
In mainline u-boot there is nothing similar in a way that it could be used to run temporarily.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
protocold Wrote:
-------------------------------------------------------
> I got serial working and here is
> the boot log:

How do you connect serial port? If it is not difficult to make a picture, please.
Re: Help on getting u-boot replacement on stock Buffalo LS421DE
February 20, 2017 04:28AM
protocold Wrote:
-------------------------------------------------------

> Can you guys help to take a look and build a u-boo
> t binary for LS421DE? I can test u-boot binary her
> e as I have SPI flasher that can read/write the SP
> I flash.

it is in u-boot.img - Unzip and rename the u-boot-ls400.buffalo.updated file (u-boot.bin for bubt)

password for unpack - 1NIf_2yUOlRDpYZUVNqboRpMBoZwT4PzoUvOPUp6l for firmware ver.1.81

via Serial Console:
BUFFALO>> help
************
bubt    - bubt  - Burn an image on the Boot Flash.
************
BUFFALO>>
example:
BUFFALO>> bubt
Using default filename "u-boot.bin"
SF: Detected MX25L8005 with page size 64 KiB, total 1 MiB
egiga1 wait for link .Done - link up.
Using egiga1 device
TFTP from server 192.168.11.1; our IP address is 192.168.11.150
Filename 'u-boot.bin'.
Load address: 0x2000000
Loading: ###################################################
done
Bytes transferred = 744892 (b5dbc hex)
Checking file size:             [Done]
Override Env parameters to default? [y/N] N (if Y - you loss PID, MAC, serial number and etc.)
Erasing 0x0 - 0xf0000: ........         [Done]
Writing image to flash:......................           [Done]
BUFFALO>>reset (to accept the new u-boot)



Edited 5 time(s). Last edit at 02/23/2017 01:53AM by Antonas.
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: