Qizhitong m501 v2 uboot and env
April 11, 2017 10:13AM
hello, I got a Qizhitong m501 v2, the uboot is customed, uboot env:

bootdelay=5
baudrate=9600
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
console=console=ttyS0,9600
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=mem=512M root=/dev/ram
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
bootcmd1=ide reset; ext2load ide 0:1 0x2000000 /uImage;setenv bootargs ro root=/dev/sda2 $(console) $(mvNetConfig) quiet;bootm 0x2000000
boottitle1=QiZhiTong Bootup
bootcmd2=ide reset; ext2load ide 0:c 0x2000000 /boot/uImage;setenv bootargs ro root=/dev/sda12 $(console) $(mvNetConfig) quiet;bootm 0x2000000
boottitle2=QiZhiTong Restore
password=$1$F5w1D$nzHGehkXN8JlDdjraKy1n/
bootdefault=1
bootcmd=nand read.e 0x2800000 0x400000 0x700000; nand read.e 0x2000000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root) $(mvNetConfig);bootm 0x2000000 0x2800000
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
ethaddr=00:90:0b:1f:bb:6c
ethmtu=1500
eth1addr=00:90:0b:1f:bb:6d
eth1mtu=1500
mvNetConfig=mv_net_config=(00:90:0b:1f:bb:6d,0:1:2:3)(00:90:0b:1f:bb:6e,4),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
enaAutoRecovery=no
pcieTune=no

Environment size: 1556/131068 bytes
MB302>>

bodhi, Is there newer uboot ?

support uart boot.
md ff00003c
ff00003c: 00000121 e3a00000 e59f222c e5921000 !.......,"......
ff00004c: e2013008 e3530000 1a000002 e3811008 .0....S.........



Edited 1 time(s). Last edit at 04/11/2017 10:56AM by youxiaojie.
Re: Qizhitong m501 v2 uboot and env
April 11, 2017 02:00PM
youxiaojie,

There is no new u-boot for it. But the kernel is supported:

Quote

Linux Kernel 4.10.0 Kirkwood package and rootfs (Flattened Device Tree) for GoFlex Home/Net, Pogoplug E02/Mobile/V4, iConnect, Dockstar, Sheevaplug, NSA320, NSA320S, NSA325, NSA310S, NSA310, Topkick, Netgear Stora, ASUS-M25, Iomega ix4-200d, QiZhiTong 501mv2, HP Thin Client T5325, LG N1T1, Linksys EA4500, Lenovo/Iomega ix2-ng, and all other Kirkwood plugs that are already in the mainline.

Here is the working thread by wacke.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Qizhitong m501 v2 uboot and env
April 12, 2017 10:49PM
I looked the post first and then got a hardware. I hope to know why the uboot could not to be update? what is your opinion? I decide to connect an jtag using raspberrypi with openocd. do you agree wacke's view that the hardware crc or limit to change uboot? I don't think so.
by the way, to change baudrate of ttl port, the only way is to flash? the setenv baudrate seems unusable. the connexion is lost when accept the prompt "do you change baudrate"? There's no way to run saveenv. this occurred on Qizhitong. The reason I hope to change baudrate is kwboot using 115200 is uploading firmware whereas 9600 false, but terminal will not show correct. but terminal using 9600 shows ok 115200 bad.:)
your advice?
Re: Qizhitong m501 v2 uboot and env
April 12, 2017 10:52PM
I also have a similar device using chip 88e6171 switch chips, does your kernel support this chips? or I must modify dts files to support this chips?
Re: Qizhitong m501 v2 uboot and env
April 12, 2017 11:24PM
youxiaojie,

> I looked the post first and then got a hardware. I
> hope to know why the uboot could not to be update?
> what is your opinion?

It should be possible to upgrade u-boot. I just never have time to look into it.

> I decide to connect an jtag
> using raspberrypi with openocd. do you agree wacke
> 's view that the hardware crc or limit to change u
> boot? I don't think so.

JTAG is overkill. You just need serial console like wacke did (or did he?).

> your advice?

I don't recall any problem with saveenv in wacke's working thread. Is the savenv command unavailable? or what else did you see when you try to save envs?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/13/2017 12:23AM by bodhi.
Author:

Your Email:


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: