Hello Bodhi and friends! I still have this Netgear Stora with a corrupt environment partition. I did discover that it is able to load files from an ext3 formatted drive with ext2load command, and list file contents with ext2ls command. I appear to be on original/stock uboot. I have been successful in loading the new uboot image to address 0x800000 . My question is: do you suppose there is aby aaronouthier - uBoot
Found the following online. Check page 12: USB Flash recovery from Uboot The info is for a "sheevaplug dev kit". However, I suspect it can be adapted to things like the GoFlex, Stora, and other such things. This of course, assumes that the Dev Kit is similar enough to the finished product. IE, that the commercial version didn't change anything major in the recovery process -by aaronouthier - Debian
Host system. “Pogoplug” doesn’t seem to notice either format source. Neither FSCK nor mount complain about either one.by aaronouthier - Debian
As promised, the Logs: $ sudo mount -t ext3 /dev/sdc1 /mnt password for theadmin: mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or helper program, or other error. sudo fsck.ext3 -f /dev/sdc1 e2fsck 1.46.2 (28-Feb-2021) The filesystem size (according to the superblock) is 244190390 blocks The physical size of the device is 244190389 blocks Eitby aaronouthier - Debian
Yes, you're correct. I'm a bit distracted right now, and I was typing from memory. I did indeed specify the partition, not the entire drive /dev/sdX1by aaronouthier - Debian
The specific command I used after partitioning, is mkfs.ext3 /dev/sdXby aaronouthier - Debian
So, 2x 1TB HDDs, both formatted by my Goflex Net. Both had errors trying to mount on my Ubuntu laptop. Tried the first 12 or so backup superblocks in the filesystem with e2fsck, but those all had identical issues. The problem seems to be that the filesystem size was 1 block bigger than the partition size. Fortunately, I only had about 300 GB of data on the one drive, and nothing on the other.by aaronouthier - Debian
Now THAT does make sense! And an ascii text file will allow for more chances of redundancy in the tar file, without adding even 1 kB to the size. (And likely less than 200 Bytes).by aaronouthier - uBoot
Any reason tar is needed for a single file? Either the tar command, or the .tar suffix? I suspect you wrote that from force of habit? Anyhow, we’ll see what happens!by aaronouthier - uBoot
I just sent a PM to Stormy about getting a copy of flashware.img . Posting here also, just in case he sees one and not the other... Also, regarding the size limitation - 1000k vs. 1024k is not a substantial difference. If you run it through gzip, bzip2, or xzip, would that reduce the size sufficiently to allow posting?by aaronouthier - uBoot
Question: Could either the uboot or envs partition be written 1 byte or 1 block at a time from the serial console, since I am getting a Marvell >>> prompt? If so, I would imagine the Envs partition would be safer? Alternately, would a Pomona clip and a raspberry pi be helpful to rewrite an EEPROM or is there any way to rewrite the NAND chip directly? Failing the above, is there anby aaronouthier - Debian
I have already tried issuing a setenv command, it does indeed fail. I have also tried resetenv. No change. My initial issue was that I forgot the login credentials, so I factory reset the Stora. Then, I couldn’t get in without the root password for stock firmware, so I used the TFTPBOOT instructions from the openwrt site, but modified to flash a new uboot. Side note: My Dad/landlord is wby aaronouthier - Debian
Hmm, no good. It doesn't pick up the USB correctly. Is there a manual uboot comand I can try to load uEnv.txt from USB?by aaronouthier - Debian
kwboot seems to sit and do nothing, despite powering on the device. Running the 'md' command listed on the kwboot page gives 0x111. Drat!! Currently creating a non-ftd uimage and uinitrd now. Took me a few unsuccessful tries to realize I'm supposed to boot first with the kernel included with the rootfs, and then upgrade the kernel from WITHIN the booted system. Trying it again,by aaronouthier - Debian
I thought I'd better stop and ask for help at this point. As my brother once pointed out: "The first rune of holes is, as soon as you realize you're in one, QUIT DIGGING!!" It is now 10:30 PM, I bid you good night.by aaronouthier - Debian
More info, possibly relevant: ## Error: environment overflow, "bootargs" deleted ## Booting image at 00800000 ... Bad Magic Number Marvell>> printenv ��������������������������������������������������������������������������by aaronouthier - Debian
I will try to post the boot logs in a moment. Right now, I am getting environment overflow errors. That happened immediately after flashing Bodhi's Uboot. That, however, isn't the strange part. Boot Logs claim this Stora MS2110 has a Marvell Feroceon CPU @ 100 MHz! Has anyone come across such a thing? FWIW, when issuing a printenv from the serial console at boot, I get at least 6by aaronouthier - Debian
Yeah, so I already managed to write the latest uboot to flash. The only problem I'm having is the environment partition is hosed, and probably the MTD partition structure. (ie, when I hosed uboot, I seem to have hosed the entire flash). So I need to write the environment data first and foremost, I'm pretty sure. (Although I could still be wrong on that). I can't boot without it.by aaronouthier - uBoot
Aha!! Got it. :0) Now then, it seems the whole flash got hosed. I know I saw info on writing the correct info to the environment partition, but I don't recall where? I just did a few forum searches, and I'm still clueless. As an aside, are there any decent rescue systems that'll fit in my 256 mb flash AND are still available for download? Preferably something based on Debianby aaronouthier - uBoot
Allrighty then, kwboot from package u-boot-tools gets stuck at the "reboot target" prompt. It is now almost midnight. I'll mess with it again after the sun wakes up. I'll probably re-download kwboot from these forums and go from there. Yes, I ran as root directly. Yes, I tried switching TX & RX at one end. Yes, I verified that no other process was using the TTY pins (therby aaronouthier - uBoot
Well, unless I ESD zapped something, or knocked a chip loose with a screwdriver when I opened the lid, I doubt it is bad RAM. It definitely booted stock OS before I messed with it. Ok, I downloaded the uboot image onto an 8 GB MicroSD card running Raspberry Pi OS, and installed u-boot-tools. I have the wires going from the Internal serial port on the Pi to the serial pins on the GoFlex Net. Guby aaronouthier - uBoot
Bodhi, et al., I've been unable to get the internal TTL serial port on my Pi to work. My USB to TTL adapter gives me the problems above. It seems to have transmission errors. I am using the kwboot for ARM downloaded from this site. I have also tried the one from u-boot-tools. I think I am going to fire up a SD card with Raspberry Pi OS lite, and try from scratch.by aaronouthier - uBoot
Wow! How long ago did you post that response? I'm just now seeing it. 1. I already checked the WiKi, nothing about JTAG for a GoFlex is mentioned. 2. I got frustrated with all of the dead ends before. Seeing as you have more experience in this matter, I'm getting the notion you know something I haven't yet realized. Is JTAGing more difficult than I realize, or am I closer toby aaronouthier - uBoot
Ok, I enabled the root account with "sudo passwd root" and set a root password. I then logged in completely as the root user with "su - root" and again entered my root password. I copied the kwboot executable and the uboot file from my user's home folder to /root, and ran the same command as before. No change in behavior. At this point, I am going to ask what pins I needby aaronouthier - uBoot
Root account is disabled on my system. I do know how to enable it, but I don't want to mess with the system. Then again, I do want the goflex to work, so perhaps I'll try it. I suppose I could backup the /etc/passwd and /etc/shadow files before enabling root, and then restore them after I'm done messing with the goflex. Worst case scenario, I just wipe the SD card and reload.by aaronouthier - uBoot
bodhi Wrote: ------------------------------------------------------- > aaronouthier, > > QuoteCopy 'n' paste requires a GUi. > > No, just any terminal where you kwboot. That > terminal command and output are what you need to > capture. > Well, the raw terminal where I was working doesn't have xwindows/x11/xfree86/whatever installed, and doesnby aaronouthier - uBoot
> [......................................................................] > > 99 % [....................................] > > > > So what happen after this? is there any more > output from the GF Net? > > Since you can kwboot, no need to connect JTAG. No, I waited about 5 minutes. No additional output. That was using a USB to TTL adapter. I've triby aaronouthier - uBoot
Is there an easy way way to setup a JTAG from my Pi? I have an old JTAG USB device, called an NAND-X. Would that help? I just dug it out of a drawer.by aaronouthier - uBoot
Photos of my setup, FWIW. https://share.icloud.com/photos/01nYOuEwZIOv8h70Bfn5UIHJwby aaronouthier - uBoot