Welcome! Log In Create A New Profile

Advanced

Marvell Dreamplug U-Boot-2017.07-tld-1

Posted by bodhi 
Marvell Dreamplug U-Boot-2017.07-tld-1
November 17, 2017 04:38PM
This is the official released version for Dreamplug U-Boot-2017.07-tld-1.

==================================
Last Updated 17 Feb 2018

Download at Dropbox

uboot.2017.07-tld-1.dreamplug.bodhi.tar (shorten link) or
https://www.dropbox.com/s/ldly5van5hdcdv4/uboot.2017.07-tld-1.dreamplug.bodhi.tar
md5:
1ddc6849ba7464e2a0465d45a9c07c00
sha256:
f2e761d5c786db7777809a36deda67ca9c6bdf44e14ff227d8f6ca51d26900d2

The above u-boot tarball contains the u-boot image only.

uboot.2016.05-tld-1.environment.bodhi.tar (shorten link) or
https://www.dropbox.com/s/4smmw2wr4ugayz9/uboot.2016.05-tld-1.environment.bodhi.tar
md5:
3823eef10011b864859d31a76470e0e3
sha256:
c8db95a4225e8d78bdaaaa372bd5a87e4b98f3448dd9c62fc96c72b2df1a997c

The above envs tarball includes 3 files:

uboot.2016.05-tld-1.environment.img (the default envs image to be flashed on other Kirkwood box, not used here) 
uboot.2016.05-tld-1.environment (the content of the default envs in text format) 
uboot.2016.05-tld-1.environment.64K.img (small envs image to be flashed on HP T5325 and Dreamplug boxes only).


Please try UART booting with kwboot before flashing. Once it can be booted with kwboot, proceed to the installation instruction below.

./kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.dreamplug.mtd0.kwb  -p


WARNING: Please proceed at your own risk. If you can't test this u-boot with UART booting then be aware of the risk of bricking the device should something goes wrong during installation (power outage, typos,..). And once the new u-boot is installed, it will not be possible to boot stock OS without further setup.


A. Installation from stock OS

Prerequisites

The Debian rootfs Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 must be prepared in advance on a USB drive on a single Ext3 partition and already mounted in this box before starting installation. The installation steps below assume that the following 4 prerequisites have been met:

NOTE: instead of the old rootfs Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (released when this instruction was written), you can also use the latest rootfs, e.g. Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2 and adjust the kernel version number in the instruction below.

a. The rootfs was extracted as is, and step 4 in the Debian rootfs installation is skipped (since we are going to boot with new u-boot, don't append DTB to uImage).
b. The tarballs uboot.2017.07-tld-1.dreamplug.bodhi.tar and uboot.2016.05-tld-1.environment.bodhi.tar have been downloaded and place in the /boot folder of the USB rootfs
c. The USB rootfs will be the only external USB drive mounted in the Dreamplug box (the drive that hosts the stock rootfs is also a USB drive internally).
d. The installation must be done while stock OS running.

Steps:

1. Boot into stock, mount the Debian rootfs, extract u-boot images, and prepare new uImage to boot with newer kernel.

1a. Boot into stock.

Power up the Dreamplug, and look for the dynamic IP assigned to it (look in the router webpage, or use network scanning apps such as Linux nmap or IOS Fing). Log in with SSH using credential root/nosoup4u.

1b. Insert and mount the Debian rootfs, and extract u-boot image and its env image.

mkdir -p /tmp/sdc1
mount -o noatime /dev/sdc1 /tmp/sdc1
cd /tmp/sdc1/boot
tar -xf uboot.2017.07-tld-1.dreamplug.bodhi.tar
tar -xf uboot.2016.05-tld-1.environment.bodhi.tar

1c. Prepare the new uImage using new kernel from the Debian rootfs. Replace stock uImage with it.

mkdir -p /tmp/sda1
mount -o noatime /dev/sda1 /tmp/sda1
cd /tmp/sda1
mv uImage uImage.stock
cp -a /tmp/sdc1/boot/zImage-4.12.1-kirkwood-tld-1 zImage.fdt
cat /tmp/sdc1/boot/dts/kirkwood-dreamplug.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt  uImage
sync

1d. Reboot and login again to stock OS

shutdow -r now

Note that the Dreamplug now will be running the new kernel Linux-4.12.1-kirkwood-tld-1, but with stock rootfs.

2. Log in with SSH using credential root/nosoup4u. And verify that your mtds now show the following definition:

cat /proc/mtd
Expected Outputs:
dev:    size   erasesize  name
mtd0: 00080000 00001000 "u-boot"
mtd1: 00010000 00001000 "u-boot env"
mtd2: 00010000 00001000 "dtb"

3. Backup your current stock mtds for future restoration, should you decide to go back to stock
mkdir -p /tmp/sdc1
mount -o noatime /dev/sdc1 /tmp/sdc1
cd /tmp/sdc1/boot
dd if=/dev/mtd0 of=mtd0 bs=512k conv=sync
dd if=/dev/mtd1 of=mtd1 bs=64k conv=sync
dd if=/dev/mtd2 of=mtd2 bs=64k conv=sync

4. Flash new u-boot to mtd0

cd /tmp/sdc1/boot
flashcp -v uboot.2017.07-tld-1.dreamplug.mtd0.kwb  /dev/mtd0

Expected Output
Erasing blocks: 128/128 (100%)
Writing data: 512k/0k (100%)
Verifying data: 512k/0k (100%)

If there is any error, stop here and post for help in recovery

5. Flash u-boot default envs to mtd1.

cd /tmp/sdc1/boot
flashcp -v uboot.2016.05-tld-1.environment.64K.img /dev/mtd1

Expected Output
Erasing blocks: 16/16 (100%)
Writing data: 64k/0k (100%)
Verifying data: 64k/0k (100%)

If there is any error, stop here and post for help in recovery

6. And add fw_env.config to your stock OS. Modify envs to your Dreamplug specific settings. And set up netconsole.

6a. Add fw_env.config to your stock OS.

echo "/dev/mtd1 0x00000 0x10000 0x10000" > /etc/fw_env.config

6b. Modify envs. Replace MAC address xxx below with your box specific settings (they should be printed on the sticker label on the box case).

Note that the mtdparts layout are changed in the following fw_setenv commands. So when you reboot into Debian roots, the mtdparts will have a new layout.

/tmp/sdc1/usr/bin/fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'
/tmp/sdc1/usr/bin/fw_setenv eth1addr 'xx:xx:xx:xx:xx:xx'
/tmp/sdc1/usr/bin/fw_setenv arcNumber 3550
/tmp/sdc1/usr/bin/fw_setenv devices 'usb ide'
/tmp/sdc1/usr/bin/fw_setenv dtb_file '/boot/dts/kirkwood-dreamplug.dtb'
/tmp/sdc1/usr/bin/fw_setenv mtdparts 'mtdparts=spi0.0:0x80000@0(u-boot),0x10000@0xC0000(u-boot-env),0x10000@0x100000(u-boot-env-stock),0x10000@0x180000(dtb-stock)'

6c. Netconsole setup is still under testing - please do not use this 6c section to set up netconsole yet! Please proceed to 6d.

Setup netconsole envs (to activate later in Debian). Replace xxx below with your box specific settings. These are IP addresses that later will be used in connecting netconsole. ipaddr is the static IP that you assign to the Dreamplug. serverip is the static IP of he box that you will run netconsole verser later. If not sure, you can do these steps after booting into Debian rootfs.

/tmp/sdc1/usr/bin/fw_setenv preboot_nc 'setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi'
/tmp/sdc1/usr/bin/fw_setenv ipaddr    'xxx.xxx.x.xxx'
/tmp/sdc1/usr/bin/fw_setenv serverip 'xxx.xxx.x.xxx'

6d. Remove envs

/tmp/sdc1/usr/bin/fw_setenv mtdids 
/tmp/sdc1/usr/bin/fw_setenv partition 
/tmp/sdc1/usr/bin/fw_setenv machid


7. Done.

You can reboot the box. And SSH in at root@debian.local (or find the dynamic IP of the new Debian rootfs). The rootfs credential is root/root.

Upon reboot, on serial/net console, u-boot banner should show

U-Boot 2017.07-tld-1 (Sep 05 2017 - 01:06:05 -0700)
Marvell-DreamPlug


B. Installation from the latest Debian rootfs

TBD.

=============

bodhi's edit: fixed typo, and mentioned that the latest rootfs can be used.

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



Edited 8 time(s). Last edit at 04/26/2023 03:28PM by bodhi.
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
November 17, 2017 04:45PM
Reserved.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
December 08, 2017 05:16AM
I have successfully used the above uboot on an AppNeta Pathview microAppliance m22 which is a re-labeled Dreamplug. Only issue I had was realizing that the internal microSD card had a partition labeled rootfs which caused issues when trying to boot Debian from an external USB drive! Once I corrected that I successfully booted a Debian-4.12.1-kirkwood image from USB.

Ray
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
December 08, 2017 03:50PM
Ray,

> I have successfully used the above uboot on an
> AppNeta Pathview microAppliance m22 which is a
> re-labeled Dreamplug. Only issue I had was
> realizing that the internal microSD card had a
> partition labeled rootfs which caused issues when
> trying to boot Debian from an external USB drive!

That's the normal behavior. Among all the drives, only one partition can have label rootfs while Linux is booting. The SD card should be unplugged during booting. Or to keep the SD card plugged in permanently, its partition must be renamed to something else.

> Once I corrected that I successfully booted a
> Debian-4.12.1-kirkwood image from USB.
>


Thanks for testing!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
December 08, 2017 07:40PM
bodhi Wrote:
> That's the normal behavior. Among all the drives,
> only one partition can have label rootfs
> while Linux is booting. The SD card should be
> unplugged during booting. Or to keep the SD card
> plugged in permanently, its partition must be
> renamed to something else.
>
I knew that only one partition should have the rootfs label, but I didn't realize the internal microSD already had a rootfs labeled partition. Removing the internal microSD card also isn't an easy task!

Ray
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 03, 2018 09:49AM
Hi,bodhi

When can we have the installation instruction for Dreamplug / Appneta m22?
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 03, 2018 02:43PM
daviddyer Wrote:
-------------------------------------------------------
> Hi,bodhi
>
> When can we have the installation instruction for
> Dreamplug / Appneta m22?

Sure, it will be up soon. Thanks for the reminder!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 03, 2018 03:12PM
Great!
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 12, 2018 09:39PM
Got some Appneta M22 from eBay. Seller is nice but USPS sucks.


https://www.ebay.com/itm/APPNETA-M22-WD-NETWORK-MONITOR-W-PSU-POWER-PLUG/201937170030


You can only see 2 NIC ports, one USB port, one Jtag port. UART port is still there but there's no hole.You have to open the box to access it.

No optical output either. (I don't use this. I don't care).

All the ports on the back side of the NIC ports are gone / missing / not installed, Including eSATA, Mic/ audio ports, 2nd USB port, SD card reader.

Tried default password(s) of root and none of them work. (appneta.admin / password / AppNeta )

I removed the microSD card and mounted it on a Linux box, changed root's /etc/shadow and got root access to it. Looks like Ethernet port 1 is configured. I can ssh to it with root when I connect E1 to router.

root@m22-VTfQ5:~# uname -a
Linux m22-VTfQ5 3.10.33-ani05 #1 PREEMPT Fri Jun 6 12:24:33 PDT 2014 armv5tel GNU/Linux

Now wait for instructions to flash the latest uboot. Maybe I will try to drill hole to access UART and install eSATA port.

[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell GuruPlug Reference Board
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0654cf4, node_mem_map c06b7000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda2 rootdelay=10
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 512MB = 512MB total
[    0.000000] Memory: 507532k/507532k available, 16756k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05d5fd8   (5944 kB)
[    0.000000]       .init : 0xc05d6000 - 0xc06126b4   ( 242 kB)
[    0.000000]       .data : 0xc0614000 - 0xc0659338   ( 277 kB)
[    0.000000]        .bss : 0xc0659338 - 0xc06b6d48   ( 375 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:114
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    0.000000] Console: colour dummy device 80x30
[    6.947950] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    7.037838] pid_max: default: 32768 minimum: 301
[    7.037975] Mount-cache hash table entries: 512
[    7.038488] Initializing cgroup subsys devices
[    7.038503] Initializing cgroup subsys freezer
[    7.038513] Initializing cgroup subsys blkio
[    7.038582] CPU: Testing write buffer coherency: ok
[    7.038844] Setting up static identity map for 0xc045a870 - 0xc045a8ac
[    7.039719] devtmpfs: initialized
[    7.041879] pinctrl core: initialized pinctrl subsystem
[    7.042095] NET: Registered protocol family 16
[    7.042461] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    7.044127] Kirkwood: MV88F6281-A1, TCLK=200000000.
[    7.044153] Feroceon L2: Cache support initialised.
[    7.045225] initial MPP regs: 01112222 11113311 33331111 33333333 00003333 00000222 00000000
[    7.045255]   final MPP regs: 01112222 11113311 33331111 33333333 00003333 00000222 00000000
[    7.069502] bio: create slab <bio-0> at 0
[    7.070507] vgaarb: loaded
[    7.071152] SCSI subsystem initialized
[    7.071667] libata version 3.00 loaded.
[    7.072484] usbcore: registered new interface driver usbfs
[    7.072665] usbcore: registered new interface driver hub
[    7.072881] usbcore: registered new device driver usb
[    7.075007] Switching to clocksource orion_clocksource
[    7.088972] FS-Cache: Loaded
[    7.106702] NET: Registered protocol family 2
[    7.107216] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    7.107316] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    7.107369] TCP: Hash tables configured (established 4096 bind 4096)
[    7.107431] TCP: reno registered
[    7.107445] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    7.107468] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    7.107658] NET: Registered protocol family 1
[    7.107985] RPC: Registered named UNIX socket transport module.
[    7.107996] RPC: Registered udp transport module.
[    7.108003] RPC: Registered tcp transport module.
[    7.108010] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.108022] PCI: CLS 0 bytes, default 32
[    7.108220] Trying to unpack rootfs image as initramfs...
[    7.493490] Freeing initrd memory: 5332K (c6709000 - c6c3e000)
[    7.493857] orion_gpio_is_valid: invalid GPIO 14
[    7.493890] gpio_btn: successfully initialized!
[    7.604076] FS-Cache: Netfs 'nfs' registered for caching
[    7.605455] NFS: Registering the id_resolver key type
[    7.605507] Key type id_resolver registered
[    7.605517] Key type id_legacy registered
[    7.606379] JFS: nTxBlock = 4006, nTxLock = 32054
[    7.608048] msgmni has been set to 1001
[    7.609977] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    7.609992] io scheduler noop registered
[    7.610000] io scheduler deadline registered
[    7.610575] io scheduler cfq registered (default)
[    7.610834] mv_xor mv_xor.0: Marvell shared XOR driver
[    7.645128] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    7.685116] mv_xor mv_xor.0: Marvell XOR: ( xor fill cpy )
[    7.685338] mv_xor mv_xor.1: Marvell shared XOR driver
[    7.725105] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[    7.765105] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    7.772552] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.794052] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    8.243681] console [ttyS0] enabled
[    8.257315] brd: module loaded
[    8.265561] loop: module loaded
[    8.284778] libphy: orion_mdio_bus: probed
[    8.289194] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.295824] ehci-pci: EHCI PCI platform driver
[    8.300439] ehci-orion: EHCI orion driver
[    8.304539] orion-ehci orion-ehci.0: EHCI Host Controller
[    8.310063] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    8.317925] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    8.335053] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    8.341757] hub 1-0:1.0: USB hub found
[    8.345621] hub 1-0:1.0: 1 port detected
[    8.350080] usbcore: registered new interface driver usb-storage
[    8.356337] usbcore: registered new interface driver ums-cypress
[    8.362554] usbcore: registered new interface driver ums-datafab
[    8.368765] usbcore: registered new interface driver ums-freecom
[    8.374978] usbcore: registered new interface driver ums-jumpshot
[    8.381272] usbcore: registered new interface driver ums-sddr09
[    8.387402] usbcore: registered new interface driver ums-sddr55
[    8.393837] mousedev: PS/2 mouse device common for all mice
[    8.400022] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[    8.406258] i2c /dev entries driver
[    8.410080] cpuidle: using governor ladder
[    8.414196] cpuidle: using governor menu
[    8.418789] sdhci: Secure Digital Host Controller Interface driver
[    8.424998] sdhci: Copyright(c) Pierre Ossman
[    8.429506] mvsdio mvsdio: no pins associated
[    8.490405] mmc0: new high speed SDIO card at address 0001
[    8.496783] mvsdio mvsdio: lacking card detect (fall back to polling)
[    8.503433] sdhci-pltfm: SDHCI platform and OF driver helper
[    8.509231] leds-gpio leds-gpio: pins are not configured from the driver
[    8.522483] usbcore: registered new interface driver usbhid
[    8.528463] usbhid: USB HID core driver
[    8.532968] zram: Created 1 device(s) ...
[    8.537445] TCP: cubic registered
[    8.542182] NET: Registered protocol family 10
[    8.547746] NET: Registered protocol family 17
[    8.552562] Key type dns_resolver registered
[    8.557734] registered taskstats version 1
[    8.562222] rtc-mv rtc-mv: setting system clock to 2018-02-13 02:36:43 UTC (1518489403)
[    8.571790] Freeing unused kernel memory: 240K (c05d6000 - c0612000)
[    8.665224] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.815449] udevd (692): /proc/692/oom_adj is deprecated, please use /proc/692/oom_score_adj instead.
[    8.826192] hub 1-1:1.0: USB hub found
[    8.835116] hub 1-1:1.0: 4 ports detected
[    8.992497] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4-ani-7.9.0.11365
[    9.077022] netif_napi_add() called with weight 512 on device eth%d
[    9.083966] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address f0:ad:4e:02:b4:80
[    9.125463] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    9.167823] sata_mv sata_mv.0: version 1.28
[    9.167882] sata_mv sata_mv.0: cannot get optional clkdev
[    9.173388] sata_mv sata_mv.0: slots 32 ports 1
[    9.213179] scsi0 : sata_mv
[    9.246327] hub 1-1.1:1.0: USB hub found
[    9.252246] hub 1-1.1:1.0: 4 ports detected
[    9.275373] ata1: SATA max UDMA/133 irq 21
[    9.362920] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address f0:ad:4e:02:b4:81
[    9.535459] usb 1-1.1.1: new high-speed USB device number 4 using orion-ehci
[    9.660487] usb-storage 1-1.1.1:1.0: USB Mass Storage device detected
[    9.675217] usb-storage 1-1.1.1:1.0: Quirks match for vid 05e3 pid 0723: 8000
[    9.687130] scsi1 : usb-storage 1-1.1.1:1.0
[    9.705216] ata1: SATA link down (SStatus 0 SControl F300)
[   10.686664] scsi 1:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ: 0 ANSI: 0
[   10.700185] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   10.862979] sd 1:0:0:0: [sda] 7744512 512-byte logical blocks: (3.96 GB/3.69 GiB)
[   10.871594] sd 1:0:0:0: [sda] Write Protect is off
[   10.876437] sd 1:0:0:0: [sda] Mode Sense: 03 00 00 00
[   10.877467] sd 1:0:0:0: [sda] No Caching mode page found
[   10.882816] sd 1:0:0:0: [sda] Assuming drive cache: write through
[   10.896718] sd 1:0:0:0: [sda] No Caching mode page found
[   10.902073] sd 1:0:0:0: [sda] Assuming drive cache: write through
[   10.918510]  sda: sda1 sda2
[   10.934617] sd 1:0:0:0: [sda] No Caching mode page found
[   10.943682] sd 1:0:0:0: [sda] Assuming drive cache: write through
[   10.955091] sd 1:0:0:0: [sda] Attached SCSI removable disk
[   25.986782] kjournald starting.  Commit interval 5 seconds
[   25.992852] EXT3-fs (sda2): using internal journal
[   25.997713] EXT3-fs (sda2): mounted filesystem with writeback data mode
[   26.707338] EXT3-fs (sda2): mounted filesystem with writeback data mode
[   26.716011] kjournald starting.  Commit interval 5 seconds
[   33.295396] udev: starting version 141
[   33.668963] orion_wdt: Initial timeout 21 sec
[   33.907265] mlan: module license 'Marvell Proprietary' taints kernel.
[   33.913774] Disabling lock debugging due to kernel taint
[   33.949492] mirror: registering eth0: created /dev/mirror0 queue size=4194304 read only=1 exclusive=1
[   33.974263] device eth0 entered promiscuous mode
[   33.981449] mv643xx_eth_port mv643xx_eth_port.0 eth0: Connected eth0 to mirror pipe /dev/mirror0
[   34.006753] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[   34.018581] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   34.407177] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   35.741869] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   35.751759] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   37.466919] WLAN FW is active
[   38.003833] 8021q: 802.1Q VLAN Support v1.8-ani
[   38.045240] fb0: Virtual frame buffer device, using 1024K of video memory
[   38.359767] EXT3-fs (sda2): using internal journal
[  441.648251] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[  443.165134] device eth0 left promiscuous mode
[  443.465166] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 100 Mb/s, full duplex, flow control disabled
[  443.465227] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[  449.237047] ip_tables: (C) 2000-2006 Netfilter Core Team
[  450.273546] mirror: registering eth0: created /dev/mirror0 queue size=4194304 read only=1 exclusive=1
[  450.273563] device eth0 entered promiscuous mode
[  450.273581] mv643xx_eth_port mv643xx_eth_port.0 eth0: Connected eth0 to mirror pipe /dev/mirror0
[  450.282706] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 13, 2018 02:13PM
Just connected serial port to RPi 0's serial port, kwboot, then flashed the latest uboot to my m22. Set ethaddr, eth1addr, boot debian 4.12.1 ok.
fw_printenv complains about crc error. Stopped uboot, printenv, saveenv, boot, fw_printenv still complains.



echo "/dev/mtd1 0x00000 0x10000 0x10000" > /etc/fw_env.config

fixed fw_printenv error.



Edited 1 time(s). Last edit at 02/18/2018 08:31PM by daviddyer.
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 13, 2018 04:58PM
David,

I'll need to find some block of free time to write the instruction.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 13, 2018 10:22PM
Anybody who has stock OS running on Dreamplug?

Please do

cat /proc/mtd

And post output here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 14, 2018 04:09AM
Quote

Anybody who has stock OS running on Dreamplug?

Please do

cat /proc/mtd

And post output here.

Nevermind! I booted back to stock OS. So I was able to check this.

The installation inside stock OS is a little bit cumbersome. Stock kernel is quite old (2.6.x), and the SPI mtds are not exposed. With serial console, the installation is easy, but without it, not so simple.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 17, 2018 02:28AM
Please see 1st post for installation instruction.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 18, 2018 09:53PM
daviddyer,

Thanks for reporting the problem with netconsole setup. I'm looking into it.

In the mean time, please do not set up netconsole (skip section 6c).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 19, 2018 01:08PM
All,

Netconsole driver is common to all boxes. But this problem seems to affect the Dreamplug only.

Please try this work around.

Interrupt netconsole at countdown, and run these commands

setenv reset_console 'setenv stdin serial; setenv stdout serial; setenv stderr serial'
setenv bootcmd_exec 'run load_uimage; if run load_initrd; then if run load_dtb; then run reset_console; bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else run reset_console; bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then run reset_console; bootm $load_uimage_addr - $load_dtb_addr; else run reset_console; bootm $load_uimage_addr; fi; fi'
boot

This will let the kernel boot normally. However, some dmesg output will be lost at the beginning of the boot log (if you have configured netconsole in Debian and expect to see more). This work aoround does not affect serial console, so you can choose to set it permanently once you're satisfied that it works well for netconsole.

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



Edited 1 time(s). Last edit at 02/19/2018 01:10PM by bodhi.
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 19, 2018 09:20PM
I have Appneta M22, which is a simplified version of dreamplug. Debian boots OK with the new u-boot, but netconsole never worked. Since it is not easy to access the serial port of M22, I did not do any further research on this issue. Dreamplug has kwboot / serial, even netconsole is not working, it is not a big deal.
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 19, 2018 09:43PM
daviddyer Wrote:
-------------------------------------------------------
> I have Appneta M22, which is a simplified version
> of dreamplug. Debian boots OK with the new u-boot,
> but netconsole never worked. Since it is not easy
> to access the serial port of M22, I did not do any
> further research on this issue. Dreamplug has
> kwboot / serial, even netconsole is not working,
> it is not a big deal.

When you say it does not work, please describe. Were you able to connect netconsole and interrupt it? How far you got?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 20, 2018 07:04AM
Nothing shows up on the netconsole... You can just see the command you typed in on the netconsole.

So I tried to ping the M22 from netconsole computer, and I got no reply from the M22 during the whole booting process. I can only get reply from M22 after the booting is finished.

Debian boots ok.
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 20, 2018 03:24PM
daviddyer,

That's either something wrong with your setup, or something peculiar about the M22.

On the Dreamplug, netconsole starts OK, and load the kernel. The kernel starts running, but later, it stuck somewhere because of console conflict. So my workaround above is to reset the console to serial to force it back to boot with serial normally.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 23, 2018 10:08AM
Well, I found out what's wrong with my M22... I followed the instructions exactly, but preboot is actually not defined. After I defined preboot 'run preboot_nc', my M22 acts like your dreamplug with the netconsole on -- Netconsole starts, I can stop autoboot on netconsole, but debian stucks somewhere after "starting kernel ...." shows up on netconsole


So I just 'setenv preboot' again.



Edited 1 time(s). Last edit at 02/23/2018 11:35AM by daviddyer.
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 24, 2018 04:33PM
daviddyer,

If you are interested, try the work around I posted above.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 24, 2018 07:37PM
Well, I bought this M22 trying to replace the good old dockstar... but unlike dreamplug, it doesn't have
SATA--which is I really want. So I think I will just put it there for some time, until I can find parts and try
to add sata to it. :P

Maybe I will cut a SATA cable and connect it to the board directly. :P



Edited 1 time(s). Last edit at 02/24/2018 07:40PM by daviddyer.
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 24, 2018 10:01PM
> Maybe I will cut a SATA cable and connect it to
> the board directly. :P

That would be a HW mod I'd like to add to the Wiki thread!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 25, 2018 01:03AM
Well, after checking / comparing the board with Dreamplug board pictures carefully, I decided to give up. A lot of components near the SATA port are also missing on the M22 board... Not just the esata port only. So it is just an enhanced version of dockstar with 512MB memory, better yet with kwboot capability.
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 25, 2018 01:15AM
There must be multiple versions of the M22 then as the one I have which I created the WikiDevi entry with is identical to the V10R1 Dreamplug I have.

Ray
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
February 26, 2018 02:39AM
Yes. The M22 that I saw on eBay are all barebone like that. For their low cost, 512MB and Gbit Ethernet in a complete box is good. Too bad it lacks eSata.

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



Edited 1 time(s). Last edit at 02/26/2018 02:40AM by bodhi.
Sniffer
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
December 17, 2023 01:08PM
Upgraded my DP following this procedure but on reboot, the MAC addresses are incorrect.

Attempting to correct them at the u-boot prompt gives;

## Error: flags type check failure for "ethaddr" <= "f0:ad:4e;00:b6:3e" (type: m)
## Error inserting "ethaddr" variable, errno=1

printenv then refuses to display the hardware address variables at all.

They do though, afterwards, appear to be correct from within the OS.

Anybody anyb clues?
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
December 17, 2023 01:25PM
";" and ":" are different.

"f0:ad:4e;00:b6:3e" is NOT a valid ethaddr.

Therefore, ethaddr was unset in environment. that why "printenv then refuses to display the hardware address variables at all"

But since you did not do "saveenv" in u-boot, the old address might still be there.
Sniffer
Re: Marvell Dreamplug U-Boot-2017.07-tld-1
December 17, 2023 01:35PM
I think that ';' was a typo, I'll double check.

I didn't do a saveenv as the setenv had failed. Will double check and respond.
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: