Welcome! Log In Create A New Profile

Advanced

uBoot for Ix2-200

Posted by Buttzy10169 
uBoot for Ix2-200
September 01, 2013 11:05AM
I was just wondering if anyone could give me any pointers or if someone that knows how, could tell me how to go about compileing a new uBoot for the iomega storecenter ix2-200.

I have it running arch linux and debian (whichever i want at the time) and can use the latest 3.10.10 kernel with device tree.

im just wondering what benefits there are to newer uBoot's and how do i compile a new uBoot and test it.

If there's any information i can supply to help i will do the best i can to provide it.



Edited 1 time(s). Last edit at 09/01/2013 11:12AM by Buttzy10169.
Re: uBoot for Ix2-200
September 01, 2013 07:28PM
Buttzy10169,

Quote

I have it running arch linux and debian (whichever i want at the time) and can use the latest 3.10.10 kernel with device tree.

You are running a quite recent uBoot if you can run with 3.10.10 device tree. I don't see any benefit in updating uBoot. In the future, if you encounter any boot problem then you could try building newer uBoot.

Btw, which uBoot version you're running? Is this uBoot or some other version?

U-Boot 1.1.4 (Sep  8 2009 - 09:31:54) Marvell version: 3.4.14

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 09/01/2013 10:05PM by bodhi.
Re: uBoot for Ix2-200
September 02, 2013 10:28AM
it looks right im not near the device at the minute so not fully sure if its the same.

its whatever the stock uboot is anyway. i build the kernel then append the dtb to it and compile the uimage and all seems to be fine.

was just curious as i like to have the latest and greatest on all my devices. i cant load the uimage and such from an ext4 volume though so wouldnt a new uboot help that? i do however just load them from the internal memory so they work that way. its just an annoying extra step that needs to be taken when installing a fresh system.
Re: uBoot for Ix2-200
September 02, 2013 08:18PM
Buttzy10169 Wrote:
-------------------------------------------------------
> it looks right im not near the device at the
> minute so not fully sure if its the same.
>
> its whatever the stock uboot is anyway. i build
> the kernel then append the dtb to it and compile
> the uimage and all seems to be fine.
>
> was just curious as i like to have the latest and
> greatest on all my devices. i cant load the uimage
> and such from an ext4 volume though so wouldnt a
> new uboot help that? i do however just load them
> from the internal memory so they work that way.
> its just an annoying extra step that needs to be
> taken when installing a fresh system.

Yes. You're using a much older uBoot. The newer version will boot FDT kernel directly, no append needed. And it also suports lot more features. The first thing to look for is the board file and other files that consitute a patch for this ix2-200. I don't know if it's available anywhere, could be Iomega GPL download? without the patch, it won't be possible to build uBoot for your box.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: uBoot for Ix2-200
September 03, 2013 04:21AM
There is a gpl download for the ix2-200 from their support site:

https://lenovo-eu-en.custhelp.com/app/answers/detail/a_id/26776

i think thats the source there i'm not sure as its been so long since i looked it up.
what would i be looking for in it to help me create a patch for uboot?
i dont have a jtag either so how do i test it from ram? i know there was something on this site about testing it that way before but havent been able to find it?

i might still have a copy of the origional device tree patch i submitted to the mainline kernel for the box would any of the information i need be in that?

theres also the origional patch that nigelr created for pre device tree kernels on his blog here:

http://blog.nobiscuit.com/2012/02/15/kernel-patch-to-support-leds-buttons-and-sensors/

i found the following uboot patches in that source im attaching them to the post there was 4 patches and this says i can only attach 3 files so im taring them. there is also 3 different uboot sources in seperate files iin the source code from above link i did not include them.



Edited 2 time(s). Last edit at 09/03/2013 06:43AM by Buttzy10169.
Attachments:
open | download - uboot-patches.tar.gz (2.2 KB)
Re: uBoot for Ix2-200
September 04, 2013 01:40AM
Buttzy,

That patch does not look like anything that I'm familiar with. Except for
u-boot/board/oxnas/config-820.mk

For example, the kirkwood patch that I used in building the Goflex Net uBoot contains:

diff -Naur a/board/Seagate/goflexnet/goflexnet.c b/board/Seagate/goflexnet/goflexnet.c
diff -Naur a/board/Seagate/goflexnet/goflexnet.h b/board/Seagate/goflexnet/goflexnet.h
diff -Naur a/board/Seagate/goflexnet/kwbimage.cfg b/board/Seagate/goflexnet/kwbimage.cfg
diff -Naur a/board/Seagate/goflexnet/Makefile b/board/Seagate/goflexnet/Makefile
diff -Naur a/include/configs/goflexnet.h b/include/configs/goflexnet.h

Is the ix2-200 OXNAS variant (uname -a)?

If you don't have JTAG, should try to see if you can boot with UART. I don't know if OXNAS has similar capability, though. For kirkwood devices:
http://forum.doozan.com/read.php?3,7852
If you can't boot with UART either, then there is no other way to test uBoot builds.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 09/04/2013 01:46AM by bodhi.
Re: uBoot for Ix2-200
September 04, 2013 04:59AM
I believe i did try the uart booting before but it did not work the uboot version is to old its 1.11 i think.

this it it on nas central:

http://iomega.nas-central.org/wiki/Category:Ix2-200

so im not sure if its an oxnas varient. If it helps at all when i install arch linux i use the openrd instructions and image.

the board is identified in uboot as:

MARVELL BOARD: RD-88F6281A LE

the standard reference board i think.
Re: uBoot for Ix2-200
September 04, 2013 01:21PM
Re: uBoot for Ix2-200
September 04, 2013 01:35PM
I know its a kirkwood i just have no idea how to go about patching / modifying a new uboot to work with it.

so im trying to supply all the information i come across so someone that knows how can help me figure out what i need to change or modify.

after searching through the uboot sources iv found the attached files they sound like they match my device but someone more knowledgeable than me would need to take a look.



Edited 1 time(s). Last edit at 09/04/2013 04:54PM by Buttzy10169.
Attachments:
open | download - uboot.tar.gz (7.7 KB)
Re: uBoot for Ix2-200
June 30, 2017 11:02PM
Buttzy,

I did some work on my ix2-200.
This thread is quite old but I am afraid the snail mail mode lenovo now force upon us to get the gpl code might not include the u-boot code (as I downloaded the online code they provide for newer device and find no u-boot source code within them).
I would be interested in the u-boot sources you grabbed if you still own them.

I am after board/mv_feroceon/mv_kw/
I got this path from https://github.com/niamster/uboot-marvell-openrd-ultimate/commits/master that holds the GPL code from Marvell for RD-6281A which match our board.
Somewhat Marvell customizes in a way that does not follow u-boot structure.

Technically I debug my test code with kwboot ... which is tricky on our device.
This required soldering a few pins on the ix2-200 board then plugging a 3.3V ttl serial converter.
Then ... ix2-200 Bootrom 1.11 does not play perfectly with kwboot:
- one have to start kwboot one second after ix2-200 is powered (too early and ix2-200 ... and too late the vanilla marvell u-boot take precedence┬░.
- and I have to close picocom, that is all other serial console, else I get tons of '+' instead of '.' when kwboot loads the u-boot via the serial console. Then when it completes loading nothing happens.

As of now I found that the reference board for our device was in mainline u-boot (rd6182a.c) and matches uboot.tar.gz patches you sent.
It is likely the source have the directory board/mv_feroceon/Mv_kw (Marvell Feroceon boards, KW family) .
The full u-boot sources would be perfect (now that I got the upstream Marvell sources) as there are a few config files in other directories.

The u-boot.patches.tar.gz contained only the 4 files for oxynas likely an iomega home media device.
Re: uBoot for Ix2-200
July 01, 2017 08:15AM
Hello,
I am interested also in helping compiling new u boot for old ix2-200.
I have uart working but not tested kwboot yet.
And I found in my archives an old source file EMCLifeline-3.1.12-GPL.zip

How could we work together on this?
Re: uBoot for Ix2-200
July 02, 2017 10:35PM
mostly I reverted:
commit 47b87d2eedcdf7be821247e570128664709844d4
Author: Simon Glass <sjg@chromium.org>
Date:   Sun Aug 30 19:19:26 2015 -0600

    arm: Remove rd6281a board
    
    This board has not been converted to generic board by the deadline.
    Remove it.
which is our board. To me it requires no conversion to generic board except back then a flag telling it was ready.

I did it above denx, that is upstream. Not such a good idea ... as the egiga0 network interface driver was rewritten
and fail on me.
The egiga1 works so I can dhcp/ping/... but still egiga0 failure slow down the boot process quite a bit.
( the issue with egiga0 mv88e61xx does not affect bohdi source as no rebase happened since this change ).

Find attached my patch against denx upstream. MInd it cope with latest changes that switched quite a few #define to Kconfig options.
Then I stripped most of my latest test, including hardcoded most of my u-boot env (ethaddr, eth1addr both at the same value + ethprime and ethact at "egiga1" a value) and loading initrd.

Right now I am toying with the idea to migrate this device to Openvault. But I will not devote another big slice of time to it until a few weeks.
I will attempt to port this revert/patch to bohdi u-boot-kirkwood this week but do not take my word :)

If you could share the EMCLifeline-3.1.12-GPL.zip ( Dropbox or google drive or another we we could sort out in PM ) I would take a look and check if we need the polarity fix from marvel patch (mvEthE6161SwitchBasicInit in board/mv_feroceon/USP/ethswitch/mvSwitch.c of board/mv_feroceon/USP/ethswitch/mvSwitch.c) for egiga0 to stop slowing down boot.
Attachments:
open | download - 0001-HACK-ix2-200-based-on-rd6281a.patch (16.6 KB)
Re: uBoot for Ix2-200
July 04, 2017 05:54PM
Ok I will share file in Dropbox in PVT.
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: