Welcome! Log In Create A New Profile

Advanced

Linux Kernel 4.13.2-mvebu-tld-1 fw_printenv output bad crc

Posted by saschadd 
Linux Kernel 4.13.2-mvebu-tld-1 fw_printenv output bad crc
October 15, 2017 03:45PM
bodhi,

update to Kernel 4.13.2 worked well.

Only issue, fw_printenv gives me a bad crc

fw_printenv
Warning: Bad CRC, using default environment
bootargs=
bootcmd=
bootdelay=2
baudrate=115200
arch=sandbox
cpu=sandbox
board=sandbox
board_name=sandbox
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run b                                                                             oot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${pr                                                                             efix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scrip                                                                             ts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fs                                                                             type ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000

should i worry about this?!
Well for activating systemd i cant use fw_setenv here, can i use a file like on the kirkwood boxes to hand over envs?

-
happy hacking,

saschadd



Edited 1 time(s). Last edit at 10/15/2017 04:19PM by bodhi.
Re: Linux Kernel 4.13.2-mvebu-tld-1 fw_printenv output bad crc
October 15, 2017 04:30PM
saschadd,


> update to Kernel 4.13.2 worked well.
>
> Only issue, fw_printenv gives me a bad crc

Which box is it?


> fw_printenv
> Warning: Bad CRC, using default environment
> bootargs=
> bootcmd=
> bootdelay=2
> baudrate=115200
> arch=sandbox
> cpu=sandbox
> board=sandbox
> board_name=sandbox
> stdin=serial,cros-ec-keyb,usbkbd
> stdout=serial,vidconsole
> stderr=serial,vidconsole
> ethaddr=00:00:11:22:33:44
> eth1addr=00:00:11:22:33:45
> eth3addr=00:00:11:22:33:46
> eth5addr=00:00:11:22:33:47
> ipaddr=1.2.3.4
> host_boot=if host dev ${devnum}; then setenv
> devtype host; run scan_dev_for_boot_part; fi
> boot_net_pci_enum=pci enum
> boot_net_usb_start=usb start
> usb_boot=usb start; if usb dev ${devnum}; then
> setenv devtype usb; run scan_dev_for_boot_part;
> fi
> boot_prefixes=/ /boot/
> boot_scripts=boot.scr.uimg boot.scr
> boot_script_dhcp=boot.scr.uimg
> boot_targets=host1 host0
> boot_extlinux=sysboot ${devtype}
> ${devnum}:${distro_bootpart} any ${scriptaddr}
> ${prefix}extlinux/extlinux.conf
> scan_dev_for_extlinux=if test -e ${devtype}
> ${devnum}:${distro_bootpart}
> ${prefix}extlinux/extlinux.conf; then echo Found
> ${prefix}extlinux/extlinux.conf; run b
>
> oot_extlinux; echo SCRIPT FAILED:
> continuing...; fi
> boot_a_script=load ${devtype}
> ${devnum}:${distro_bootpart} ${scriptaddr}
> ${prefix}${script}; source ${scriptaddr}
> scan_dev_for_scripts=for script in
> ${boot_scripts}; do if test -e ${devtype}
> ${devnum}:${distro_bootpart} ${prefix}${script};
> then echo Found U-Boot script ${pr
>
> efix}${script}; run boot_a_script; echo
> SCRIPT FAILED: continuing...; fi; done
> scan_dev_for_boot=echo Scanning ${devtype}
> ${devnum}:${distro_bootpart}...; for prefix in
> ${boot_prefixes}; do run scan_dev_for_extlinux;
> run scan_dev_for_scrip
>
> ts; done;
> scan_dev_for_boot_part=part list ${devtype}
> ${devnum} -bootable devplist; env exists devplist
> || setenv devplist 1; for distro_bootpart in
> ${devplist}; do if fs
>
> type ${devtype} ${devnum}:${distro_bootpart}
> bootfstype; then run scan_dev_for_boot; fi; done
> bootcmd_host1=setenv devnum 1; run host_boot
> bootcmd_host0=setenv devnum 0; run host_boot
> distro_bootcmd=for target in ${boot_targets}; do
> run bootcmd_${target}; done
> bootm_size=0x10000000
> kernel_addr_r=0x1000000
> fdt_addr_r=0xc00000
> ramdisk_addr_r=0x2000000
> scriptaddr=0x1000
> pxefile_addr_r=0x2000[/code]
>

The above are stock u-boot internal envs without any modifcation.

> Well for activating systemd i cant use fw_setenv
> here, can i use a file like on the kirkwood boxes
> to hand over envs?

I am not sure what you meant. But first, please post output of

the envs listed in serial console
printenv

And in Debian
dmesg
cat /proc/mtd
cat /etc/fw_env.config

And if this is WD EX4100 box , did we work on the fw_printenv/fw_setenv in Debian rootfs? or we just set it up in u-boot?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.13.2-mvebu-tld-1 fw_printenv output bad crc
October 16, 2017 01:46AM
bodhi Wrote:
-------------------------------------------------------

> Which box is it?

the EX4100


> I am not sure what you meant.

i meant the uEnv.txt file

> But first, please post output of the envs listed in serial console

Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run bootcmd_custom; setenv bootargs root=/dev/ram console=ttyS0,115200; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_custom=if run bootcmd_usb; then ; fi; run bootcmd_stock; reset
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_stock=echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=echo Booting from USB ...; usb start; setenv fdt_skip_update yes; usb start; run usb_set_bootargs; if run load_image; then if run load_initrd; then bootm $load_image_addr $load_initrd_addr; else bootm $load_image_addr; fi; fi
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:46:25:2a
eth1mtu=1500
eth2addr=00:50:43:46:96:2a
eth2mtu=1500
eth3addr=00:50:43:25:96:46
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:96:25:2a
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=24
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=2.66.66.203
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:2a:96:46
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
rootpath=/srv/nfs/
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
serverip=2.66.66.32
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usbActive=0
usbType=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 4536/524284 bytes
Marvell>>

> And in Debian
root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.2-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4)) #1 SMP PREEMPT Tue Sep 26 04:18:30 PDT 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0d9f780, node_mem_map eeff8000
[    0.000000]   Normal zone: 1536 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] percpu: Embedded 17 pages/cpu @eefc9000 s40908 r8192 d20532 u69632
[    0.000000] pcpu-alloc: s40908 r8192 d20532 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2058988K/2097152K available (8192K kernel code, 722K rwdata, 2140K rodata, 1024K init, 335K bss, 38164K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
                   lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                     .text : 0xc0008000 - 0xc0900000   (9184 kB)
                     .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                     .data : 0xc0d00000 - 0xc0db4ad8   ( 723 kB)
                      .bss : 0xc0dbc284 - 0xc0e101c4   ( 336 kB)
[    0.000000] random: get_random_u32 called from cache_alloc_refill+0x5f8/0x7e8 with crng_init=0
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019107] Console: colour dummy device 80x30
[    0.023620] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034012] pid_max: default: 32768 minimum: 301
[    0.038760] Security Framework initialized
[    0.042956] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049630] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057064] CPU: Testing write buffer coherency: ok
[    0.062127] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.103864] Setting up static identity map for 0x100000 - 0x100060
[    0.110165] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.115452] mvebu-pmsu: Initializing Power Management Service Unit
[    0.121746] Hierarchical SRCU implementation.
[    0.163843] smp: Bringing up secondary CPUs ...
[    0.213895] Booting CPU 1
[    0.216738] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.216786] smp: Brought up 1 node, 2 CPUs
[    0.226681] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.233001] CPU: All CPU(s) started in SVC mode.
[    0.238265] devtmpfs: initialized
[    0.243241] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.251159] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.261037] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.267315] prandom: seed boundary self test passed
[    0.273940] prandom: 100 self tests passed
[    0.278100] pinctrl core: initialized pinctrl subsystem
[    0.283976] NET: Registered protocol family 16
[    0.289020] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.296080] random: fast init done
[    0.300158] cpuidle: using governor ladder
[    0.304357] cpuidle: using governor menu
[    0.308460] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.316519] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.322505] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.330651] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.394216] vgaarb: loaded
[    0.397129] SCSI subsystem initialized
[    0.401033] libata version 3.00 loaded.
[    0.401158] usbcore: registered new interface driver usbfs
[    0.406801] usbcore: registered new interface driver hub
[    0.412205] usbcore: registered new device driver usb
[    0.417483] media: Linux media interface: v0.10
[    0.422094] Linux video capture interface: v2.00
[    0.427405] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.468639] VFS: Disk quotas dquot_6.6.0
[    0.472664] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.484210] NET: Registered protocol family 2
[    0.488998] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.496130] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.502743] TCP: Hash tables configured (established 8192 bind 8192)
[    0.509217] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.515210] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.521778] NET: Registered protocol family 1
[    0.526416] RPC: Registered named UNIX socket transport module.
[    0.532418] RPC: Registered udp transport module.
[    0.537183] RPC: Registered tcp transport module.
[    0.541963] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.548478] PCI: CLS 0 bytes, default 64
[    0.548569] Unpacking initramfs...
[    0.794996] Freeing initrd memory: 7368K
[    0.799136] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.805926] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.814806] audit: initializing netlink subsys (disabled)
[    0.820509] audit: type=2000 audit(0.803:1): state=initialized audit_enabled=0 res=1
[    0.820729] Initialise system trusted keyrings
[    0.820748] Key type blacklist registered
[    0.820820] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.828328] zbud: loaded
[    0.838899] NFS: Registering the id_resolver key type
[    0.838907] Key type id_resolver registered
[    0.838909] Key type id_legacy registered
[    0.838916] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.838918] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.839018] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.839258] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.839351] orangefs_init: module version upstream loaded
[    0.841925] Key type asymmetric registered
[    0.841928] Asymmetric key parser 'x509' registered
[    0.841954] bounce: pool size: 64 pages
[    0.841984] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.841986] io scheduler noop registered
[    0.841988] io scheduler deadline registered
[    0.842017] io scheduler cfq registered (default)
[    0.844511] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.846002] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.846011] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.846015] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.846019] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.846022] pci_bus 0000:00: scanning bus
[    0.846038] pci 0000:00:01.0: [11ab:6828] type 01 class 0x060400
[    0.846062] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    0.846195] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[    0.846212] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x3c
[    0.846336] pci_bus 0000:00: fixups for bus
[    0.846343] PCI: bus0: Fast back to back transfers disabled
[    0.846348] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    0.846351] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.846357] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    0.846361] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.846366] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    0.846432] pci_bus 0000:01: scanning bus
[    0.846436] pci_bus 0000:01: fixups for bus
[    0.846439] PCI: bus1: Fast back to back transfers enabled
[    0.846441] pci_bus 0000:01: bus scan returning with max=01
[    0.846446] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.846452] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    0.846517] pci_bus 0000:02: scanning bus
[    0.846520] pci_bus 0000:02: fixups for bus
[    0.846522] PCI: bus2: Fast back to back transfers enabled
[    0.846525] pci_bus 0000:02: bus scan returning with max=02
[    0.846529] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    0.846533] pci_bus 0000:00: bus scan returning with max=02
[    0.846546] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.846553] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.846592] pcieport 0000:00:01.0: assign IRQ: got 0
[    0.846595] pcieport 0000:00:01.0: assigning IRQ 00
[    0.846606] pcieport 0000:00:01.0: enabling bus mastering
[    0.846643] pcieport 0000:00:02.0: assign IRQ: got 0
[    0.846646] pcieport 0000:00:02.0: assigning IRQ 00
[    0.846653] pcieport 0000:00:02.0: enabling bus mastering
[    0.846902] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.907822] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    0.907927] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.967785] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    0.999587] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.000640] console [ttyS0] disabled
[    1.075101] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.084138] console [ttyS0] enabled
[    1.091244] bootconsole [earlycon0] disabled
[    1.100650] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.109755] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.119079] scsi host0: ahci-mvebu
[    1.122696] scsi host1: ahci-mvebu
[    1.126235] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.134203] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.142308] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.151423] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.160735] scsi host2: ahci-mvebu
[    1.164347] scsi host3: ahci-mvebu
[    1.167903] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.175853] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.184302] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.192173] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.198566] nand: Hynix H27U4G8F2DTR-BC
[    1.202419] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.210045] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.217229] Bad block table found at page 262080, version 0x01
[    1.223417] Bad block table found at page 262016, version 0x01
[    1.229455] nand_read_bbt: bad block at 0x00000dcc0000
[    1.234616] nand_read_bbt: bad block at 0x00000fb00000
[    1.239795] nand_read_bbt: bad block at 0x000012180000
[    1.244955] nand_read_bbt: bad block at 0x0000139a0000
[    1.250123] nand_read_bbt: bad block at 0x000017880000
[    1.255281] nand_read_bbt: bad block at 0x0000178a0000
[    1.260447] nand_read_bbt: bad block at 0x00001a640000
[    1.265608] nand_read_bbt: bad block at 0x00001e9c0000
[    1.270830] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.276949] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.282380] 0x000000000000-0x000000500000 : "U-Boot"
[    1.287998] 0x000000500000-0x000000f00000 : "uImage"
[    1.293492] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.299185] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.306637] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.311916] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.323367] 0x00001d700000-0x00003c200000 : "config"
[    1.328366] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.339513] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.344673] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.355925] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.361098] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.372866] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.379557] libphy: Fixed MDIO Bus: probed
[    1.384011] libphy: orion_mdio_bus: probed
[    1.393842] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.402863] mvneta f1070000.ethernet eth0: Using random mac address 36:c3:49:56:d8:57
[    1.412278] mvneta f1030000.ethernet eth1: Using random mac address 0e:f4:b5:ea:2a:b0
[    1.420378] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.426951] ehci-pci: EHCI PCI platform driver
[    1.431467] ehci-orion: EHCI orion driver
[    1.435603] orion-ehci f1058000.usb: EHCI Host Controller
[    1.441053] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.448729] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.468620] ata2: SATA link down (SStatus 0 SControl 300)
[    1.474080] ata1: SATA link down (SStatus 0 SControl 300)
[    1.487419] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.493473] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.500302] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.507573] usb usb1: Product: EHCI Host Controller
[    1.509855] ata3: SATA link down (SStatus 0 SControl 300)
[    1.517898] usb usb1: Manufacturer: Linux 4.13.2-mvebu-tld-1 ehci_hcd
[    1.519996] ata4: SATA link down (SStatus 0 SControl 300)
[    1.529789] usb usb1: SerialNumber: f1058000.usb
[    1.534753] hub 1-0:1.0: USB hub found
[    1.538548] hub 1-0:1.0: 1 port detected
[    1.542941] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.548314] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.555897] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.564490] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.570351] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.577170] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.584456] usb usb2: Product: xHCI Host Controller
[    1.589365] usb usb2: Manufacturer: Linux 4.13.2-mvebu-tld-1 xhci-hcd
[    1.595833] usb usb2: SerialNumber: f10f0000.usb3
[    1.600863] hub 2-0:1.0: USB hub found
[    1.604645] hub 2-0:1.0: 1 port detected
[    1.608770] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.614110] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.621691] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.629887] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.636704] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.643976] usb usb3: Product: xHCI Host Controller
[    1.649615] usb usb3: Manufacturer: Linux 4.13.2-mvebu-tld-1 xhci-hcd
[    1.656084] usb usb3: SerialNumber: f10f0000.usb3
[    1.661113] hub 3-0:1.0: USB hub found
[    1.664896] hub 3-0:1.0: 1 port detected
[    1.669049] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.674393] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.681984] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.690595] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.696441] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.703272] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.710532] usb usb4: Product: xHCI Host Controller
[    1.715430] usb usb4: Manufacturer: Linux 4.13.2-mvebu-tld-1 xhci-hcd
[    1.721950] usb usb4: SerialNumber: f10f8000.usb3
[    1.726926] hub 4-0:1.0: USB hub found
[    1.730718] hub 4-0:1.0: 1 port detected
[    1.734801] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.740153] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.747730] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.755912] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.762741] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.770002] usb usb5: Product: xHCI Host Controller
[    1.774900] usb usb5: Manufacturer: Linux 4.13.2-mvebu-tld-1 xhci-hcd
[    1.781428] usb usb5: SerialNumber: f10f8000.usb3
[    1.786395] hub 5-0:1.0: USB hub found
[    1.790186] hub 5-0:1.0: 1 port detected
[    1.794348] usbcore: registered new interface driver usblp
[    1.799935] usbcore: registered new interface driver usb-storage
[    1.806105] mousedev: PS/2 mouse device common for all mice
[    1.812364] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.820051] i2c /dev entries driver
[    1.834415] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.847085] orion_wdt: Initial timeout 171 sec
[    1.852745] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.860045] hidraw: raw HID events driver (C) Jiri Kosina
[    1.865639] usbcore: registered new interface driver usbhid
[    1.871249] usbhid: USB HID core driver
[    1.875297] drop_monitor: Initializing network drop monitor service
[    1.881664] Netfilter messages via NETLINK v0.30.
[    1.886406] ip_set: protocol 6
[    1.889754] NET: Registered protocol family 10
[    1.894797] Segment Routing with IPv6
[    1.898622] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.905235] NET: Registered protocol family 17
[    1.909761] 8021q: 802.1Q VLAN Support v1.8
[    1.913983] Key type dns_resolver registered
[    1.918370] ThumbEE CPU extension supported.
[    1.922660] Registering SWP/SWPB emulation handler
[    1.927803] registered taskstats version 1
[    1.931917] Loading compiled-in X.509 certificates
[    1.936760] zswap: loaded using pool lzo/zbud
[    1.948211] Key type big_key registered
[    1.955269] Key type encrypted registered
[    1.960298] armada38x-rtc f10a3800.rtc: setting system clock to 2017-10-16 07:40:59 UTC (1508139659)
[    1.969506] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.976211] PM: Hibernation image not present or could not be loaded.
[    1.977121] Freeing unused kernel memory: 1024K
[    2.137692] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.144441] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.158074] hub 2-1:1.0: USB hub found
[    2.162003] hub 2-1:1.0: 4 ports detected
[    2.277664] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.308990] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.315731] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.325165] hub 3-1:1.0: USB hub found
[    2.330328] hub 3-1:1.0: 4 ports detected
[    2.477434] usb 2-1.2: new high-speed USB device number 3 using xhci-hcd
[    2.608059] usb 2-1.2: New USB device found, idVendor=0781, idProduct=5571
[    2.614969] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.622323] usb 2-1.2: Product: Cruzer Fit
[    2.626436] usb 2-1.2: Manufacturer: SanDisk
[    2.630731] usb 2-1.2: SerialNumber: 4C530302071223122304
[    2.637877] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[    2.644329] scsi host4: usb-storage 2-1.2:1.0
[    2.651030] usbcore: registered new interface driver uas
[    3.697898] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    3.706738] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    3.715213] sd 4:0:0:0: [sda] Write Protect is off
[    3.720055] sd 4:0:0:0: [sda] Mode Sense: 43 00 00 00
[    3.720343] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.732588]  sda: sda1
[    3.736253] sd 4:0:0:0: [sda] Attached SCSI removable disk
[   12.641397] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   14.061932] sd 4:0:0:0: Attached scsi generic sg0 type 0
[   14.885705] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   16.087915] m88e1318_get_wol: phy_id = 0x1410dd1 OK
[   16.092927] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   20.257797] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   20.265851] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   29.300850] random: crng init done


root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00500000 00020000 "U-Boot"
mtd1: 00a00000 00020000 "uImage"
mtd2: 00f00000 00020000 "uRamdisk"
mtd3: 1c800000 00020000 "image.cfs"
mtd4: 03800000 00020000 "rescue_fw"
mtd5: 02900000 00020000 "config"
mtd6: 01500000 00020000 "reserve1"
mtd7: 00b00000 00020000 "reserve2"


root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size      Number of sectors

/dev/mtd1               0x0000          0x80000         0x20000                4


> And if this is WD EX4100 box , did we work on the fw_printenv/fw_setenv in Debian rootfs? or we just set it up in u-boot?

thats a good question. i think we just set it up in u-boot. i have to look through our tests to verify.

-
happy hacking,

saschadd
Re: Linux Kernel 4.13.2-mvebu-tld-1 fw_printenv output bad crc
October 16, 2017 02:27AM
saschadd

>
> > And if this is WD EX4100 box , did we work on
> the fw_printenv/fw_setenv in Debian rootfs? or we
> just set it up in u-boot?
>
> thats a good question. i think we just set it up
> in u-boot. i have to look through our tests to
> verify.

We did not :) I remember now. We stopped here.

[    1.311916] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.323367] 0x00001d700000-0x00003c200000 : "config"
[    1.328366] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.339513] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.344673] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.355925] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.361098] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000

Regarding the uEnv.txt. No we cannot use that capability, it is not in stock u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 10/16/2017 02:28AM by bodhi.
Re: Linux Kernel 4.13.2-mvebu-tld-1 fw_printenv output bad crc
October 16, 2017 02:52AM
> Regarding the uEnv.txt. No we cannot use that capability, it is not in stock u-boot.

Okay, do you think there will be an updated uboot package like for the kirkwood boxes or are there too many different mvebu boxes around to make that? Or do we have to gather more infos about those boxes first?

So by now i can only set the systemd in serial console.
Do i have to add it to that line

usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)
Re: Linux Kernel 4.13.2-mvebu-tld-1 fw_printenv output bad crc
October 16, 2017 03:26AM
saschadd,

I have not got back to solve my NAS326 kwboot problem. So U-boot for these MVEBU boxes will not be ready for quite a while. That's why I patched the stock WD EX4100 u-boot for you.

> So by now i can only set the systemd in serial
> console.

True. But this has nothing to do with lack of new u-boot. It is because your NAND setup has error that we have not worked on it. Those error messages above indicated that the NAND partition layout is incorrect. So you can't use fw_setenv.

> Do i have to add it to that line
> usb_set_bootargs=setenv bootargs ....

Yes. For now.

Do this in serial console

setenv custom_params 'init=/bin/systemd'
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2) ${custom_params}'
and boot
boot

After it booted into systemd, come back to serial console and repeat the setenv and then save them:

setenv custom_params 'init=/bin/systemd'
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2) ${custom_params}'
saveenv

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.13.2-mvebu-tld-1 fw_printenv output bad crc
October 16, 2017 02:20PM
bodhi,

works like a charm!
Thanks man, problem solved.

-
happy hacking,

saschadd
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: