bodhi, this device seems not to be able to boot from usb 3.0 sticks. I prepared another stick which is 3.0 but the marvel console doesnt recognize it. :(by saschadd - Debian
bodhi, this seems to work a bit more after run bootcmd_usb (Re)start USB... USB0: Port (usbActive) : 0 Interface (usbType = 3) : USB XHCI 1.00 scanning bus 0 for devices... 4 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found scanning usb for ethernet devices... 0 Ethernet Device(s) found Booting from USB ... (Re)start USB... USB0by saschadd - Debian
bodhi, env gives env - environment handling commands Usage: env default [-f] -a - reset default environment env default [-f] var [...] - reset variable(s) to their default values env delete [-f] var [...] - delete variable(s) env edit name - edit environment variable env export [-t | -b | -c] [-s size] addr - export environment env import [-d] [-t | -b | -c] addr - import enby saschadd - Debian
bodhi Wrote: ------------------------------------------------------- > Good progress :) Yes, i think we are very close. ; ) I tried the revised envs but same result i am running run bootcmd_usb because only boot is booting the original firmware. (Re)start USB... USB0: Port (usbActive) : 0 Interface (usbType = 3) : USB XHCI 1.00 scanning bus 0 for devices... 4 USB Deby saschadd - Debian
bodhi, just remembered that WD has GPL Firmware packages for download at http://support.wdc.com/downloads.aspx?p=213&lang=en Maybe this would be helpful?!by saschadd - Debian
bodhi, i double checked if all environments are set (they are) and while doing that i noticed that the variables eth1addr= eth2addr= eth3addr= ethaddr= mv_pon_addr= seem to change on every boot as they are different. This doesnt seem to be an issue at the moment but thought you should know about that.by saschadd - Debian
bodhi, here comes the boot log from first try run bootcmd_usb (Re)start USB... USB0: Port (usbActive) : 0 Interface (usbType = 3) : USB XHCI 1.00 scanning bus 0 for devices... 4 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found scanning usb for ethernet devices... 0 Ethernet Device(s) found loading uImage ... 3904464 bytes read inby saschadd - Debian
okay, after adding the envs printenv gives me the following ( hope i xx-ed everything ; ) if not please let me know) 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 iby saschadd - Debian
bodhi, cat /proc/mtd gives me dev: size erasesize name mtd0: 00500000 00020000 "U-Boot" mtd1: 00500000 00020000 "uImage" mtd2: 00500000 00020000 "uRamdisk" mtd3: 1b900000 00020000 "image.cfs" mtd4: 00f00000 00020000 "rescue fw" mtd5: 01400000 00020000 "config" mtd6: 00a00000 00020000 "reserve1" mtd7: 00a0000by saschadd - Debian
bodhi, much thanks for your work so far. I tried your how-to and got stuck at the nand dump. At first i had to change some paths as the EX4100 has no /media so i switched to /mnt and because i removed all disks the drive becomes sda1. 4. Boot into the EXT4100 stock OS. Mount the new USB Debian rootfs. Assuming it is mounted at /mnt/sda1. mkdir /mnt/sda1 mount /dev/sda1 /mnt/sda1by saschadd - Debian
Done! See here http://forum.doozan.com/read.php?2,34103 bodhi Wrote: ------------------------------------------------------- > saschadd, > > Please start a new tthread: > > Debian on WD MyCloud EX 4100 > > And repost the starting content such as in your po > st: > http://forum.doozan.com/read.php?2,32146,34046#msg > -34046 > > (I never haveby saschadd - Debian
Hi folks, this thread is intended for upgrading the WD MyCloud EX 4100 with a debian system. Because this box has an Marvell Armada 380/381/382/385/388 (Device Tree) processor we can use bodhis Kernel and rootfs from there http://forum.doozan.com/read.php?2,32146 and here in this thread we can discuss possibly needed modifications and how to do things with this box. Here are some infosby saschadd - Debian
bodhi, sounds good so far. Could you "read" from the DTS if this box can be bootet from usb? At the moment i have no serial console access to this box and havent yet figured out if and where there is a serial connector. To switch the boot mode serial console access is needed, right? Or could i change env data without serial console access? I know about there was a way for theby saschadd - Debian
Hi bodhi, am i right that this kernel and rootfs could fit my WD MyCloud EX 4100 as it has an Marvell Armada 380/381/382/385/388 (Device Tree). cat /proc/version gives me the folliwing information Linux version 3.10.39 (kman@kmachine) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #2 SMP Fri Aug 12 15:59:39 CST 2016 2014T30p5by saschadd - Debian
Edit: Have to rethink my question to make sense. ;)by saschadd - Debian
Hi Avio and bodhi, thanks for the "little reminder". ; ) I was about to forget to post the howto because i am stuck at my next step of setting up a backup box with bareos. Unfortunately bareos seems not to be usable with actual openssl versions as i get failures crypto_openssl.c:131:1: error: expected constructor, destructor, or type conversion before ‘IMPLEMENT_STACK_OF’ Iby saschadd - uBoot
After some trial and error and with some good tips and hints from bodhi i got an btrfs raid 1 running on my NSA325v2. As this took me quite some time to figure things out i share my little howto for others out there in the hope it might be helpful. The following HowTo is how i did it on an NSA325v2 but it should be adaptable to other Kirkwood boxes as well. I recommend to have the serial conby saschadd - Debian
bodhi, it is possible!!! I got it working!!! I noted down what i did to get it up and running and will do a howto for others. Thanks for your help and sugesstions even if the problem was selfmade by me. I tried to get it up and running with the newest btrfs-tools installed via make install. By doing this there is the file local-premount/btrfs missing and therefore the kernel cant assembby saschadd - uBoot
bodhi Wrote: ------------------------------------------------------- > Kernel linux-4.10.0-kirkwood-tld-1 package has bee > n uploaded. Please see 1st post for download link. Thank you! Updated worked perfect as always! Thank you so much!by saschadd - Debian
hi ptosch and bodhi, i am trying to get the buttons doing something but without luck. I followed the instructions here http://forum.doozan.com/read.php?2,26391,26478#msg-26478 then i set START_ESEKEYD in /etc/default/esekeyd to true and rebooted but the buttons do nothing. Do i have to add some commands so that they will do?by saschadd - Debian
As already said i am going so far down the rabbit hole... but somehow i can't let it go... ;) So i retried installing it only on one partition without raid1 first. I figured out that the btrfs rootfs will be mounted ro if you dont correct the fstab. Maybe i missunderstood something but i thought fstab is no longer necessary with newest uboot. Anyhow got this working and then systemd isby saschadd - uBoot
bodhi, bodhi Wrote: ------------------------------------------------------- > saschadd, > > 1. Have you added the module to initramfs-tools/modules ? this is the way to tell the kernel to beware of btrfs earlier. Yes, module is added and loaded at boot. > 2. If in doubt, switch back to sysvinit and work this out. That eliminates an unknown variable. IIRC, systemd had somby saschadd - uBoot
Okay, i need to make a btrfs device scan before the rootfs gets mounted as stated in the official btrfs FAQs. With multiple devices, btrfs normally needs an initramfs to perform a device scan. It may be necessary to modprobe (and then rmmod) scsi-wait-scan to work around a race condition. .... btrfs device scan This should be in many distributions' startup scripts (and initrd imaby saschadd - uBoot
Hmm, confirmed that the reasion for the failures Failed to start Remount Root and Kernel File Systems. ... Failed to start Load/Save Random Seed. ... Failed to start Update UTMP about System Boot/Shutdown. Dependency failed for Update UTMP about System Runlevel Changes. was not my different approach of copying. They persist even after copying with your command time cp -aR /by saschadd - uBoot
After some more reading and testing i think it is not that the boot of an btrfs raid is impossible but you have to boot it with uuid Now i tried to set the bootargs for sata boot in uEnv.txt but it is not working as intended. Thats my uEnv.txt which gets loaded but does nothing. sata_root=2f613613-85b4-46cf-bbbe-90a1748f7753 sata_rootstype=btrfs sata_rootflags=defaults,compress,subvol=by saschadd - uBoot
bodhi, i was already working on this over the day and got the btrfs module loaded etc. But i think the kernel module is not able to load an btrfs raid1 rootfs as i get the following error when booting it. Btrfs loaded, crc32c=crc32c-generic Begin: Will now check root file system ... fsck from util-linux 2.25.2 done. [ 19.187676] BTRFS: device label rootfs devid 1 transid 31 /dev/sby saschadd - uBoot
I already had the idea about doing this on on the already running live system on the stick and then moving to the sata drive. But i had the idea while on the road so i am just yet able to try. Do i have to copy it with a special command or just copy everything from sda1 to sdb1 for example. As i am brand new to this initramfs and unitrd rebuilding i dont know where to get that btrfs module.by saschadd - uBoot
bodhi Wrote: ------------------------------------------------------- > saschadd, > > With systemd, there are many bugs in earlier versi > on. So I would > > 1. upgrade the kernel to linux-4.9.0-kirkwood-tld- > 1-bodhi.tar.bz2 > > 2. And then do apt-get update, apt-get upgrade. You are right. Well this is the original rootfs version 4.4.0-kirkwood-tld-1by saschadd - uBoot
Okay, here is the complete serial bootlog sudo picocom -b 115200 /dev/ttyAMA0 picocom v1.7 port is : /dev/ttyAMA0 flowcontrol : none baudrate is : 115200 parity is : none databits are : 8 escape is : C-a local echo is : no noinit is : no noreset is : no nolock is : no send_cmd is : sz -vv receive_cmd is : rz -vv imap is : omaby saschadd - uBoot
I tried to be not to shy and try it on my own with trial and error. ;) Btrfs gets loaded but then it gets stuck Btrfs loaded Begin: Checking root file system ... fsck from util-linux 2.25.2 done. [ 15.958679] BTRFS: device label rootfs devid 1 transid 15 /dev/sda2 [ 15.967064] BTRFS info (device sda2): disk space caching is enabled [ 15.974754] BTRFS: failed to read the systemby saschadd - uBoot