Welcome! Log In Create A New Profile

Advanced

kernel 3.5 and device-tree support...

Posted by davygravy 
Re: kernel 3.5 and device-tree support...
April 17, 2013 01:19AM
Fixed it:

cat board/Seagate/goflexnet/goflexnet.c| grep mpp

#include <asm/arch/mpp.h>
	u32 kwmpp_config[] = {
	kirkwood_mpp_conf(kwmpp_config);

Built OK now.
Re: kernel 3.5 and device-tree support...
April 17, 2013 02:00AM
uBoot for iConnect build error:

.....
gcc  -g  -Os   -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x00600000 -I/usr/src/u-boot-2012.04.01/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.6/include -pipe  -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv5te -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage     -o hush.o hush.c -c
hush.c: In function ‘get_user_input’:
hush.c:1016:16: error: ‘CONFIG_SYS_PROMPT_HUSH_PS2’ undeclared (first use in this function)
hush.c:1016:16: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [hush.o] Error 1
make[1]: Leaving directory `/usr/src/u-boot-2012.04.01/common'
make: *** [common/libcommon.o] Error 2
Re: kernel 3.5 and device-tree support...
April 18, 2013 12:42AM
@rpress,

I've fixed the iconnect build error, too.

/usr/src/u-boot-2012.04.01/common# grep -in CONFIG_SYS_PROMPT hush.c
1014: n = readline(CONFIG_SYS_PROMPT);
1016: // n = readline(CONFIG_SYS_PROMPT_HUSH_PS2);
1017: n = readline(CONFIG_SYS_PROMPT);

/usr/src/u-boot-2012.04.01/board/Iomega/iconnect# grep -i mpp_conf iconnect.c
u32 kwmpp_config[] = {
kirkwood_mpp_conf(kwmpp_config);

Probably the wrong patch was included in your tarball for u-boot-2012.04.01?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: kernel 3.5 and device-tree support...
April 18, 2013 11:24AM
I should note that I didn't come up with these patches, I just got it working with FDT. I forget where I saw it originally, it's been 7 months... It looks like there is a typo in iconnect.h:
#define CONFIG_SYS_PROMPT_HISH_PS2 "> "
should be
#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "

I don't know why the parameter list is different in kirkwood_mpp_conf, my version (which does show 04-01-2012) requires two parameters. Maybe there was some other patch applied to the version I have.

Anyway, have you tried it yet?
Re: kernel 3.5 and device-tree support...
April 23, 2013 11:12AM
rpress Wrote:
-------------------------------------------------------
> I should note that I didn't come up with these
> patches, I just got it working with FDT. I forget
> where I saw it originally, it's been 7 months...
> It looks like there is a typo in iconnect.h:
>
> #define CONFIG_SYS_PROMPT_HISH_PS2 "> "
>
> should be
>
> #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
>
>
> I don't know why the parameter list is different
> in kirkwood_mpp_conf, my version (which does show
> 04-01-2012) requires two parameters. Maybe there
> was some other patch applied to the version I
> have.
>
> Anyway, have you tried it yet?

The GoflexNet patch is actually for newer version (uboot.2013.01 built fine with it). I will try this instead.
Re: kernel 3.5 and device-tree support...
April 26, 2013 12:06AM
The patch for GoFlex Net works great so far! I was able to boot a non-DT kernel with uboot.2013.01 compiled with this patch. I will try a DT kernel with it.
Re: kernel 3.5 and device-tree support...
April 26, 2013 02:30AM
@rpress,

Could you post your uBoot env script to boot a FDT kernel?

Thanks

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: kernel 3.5 and device-tree support...
April 26, 2013 02:50PM
Kurlon Wrote:
-------------------------------------------------------
> ext2load ide 0:1 0x80000 /boot/zImage
> ext2load ide 0:1 some other addr
> /boot/kirkwood-goflexnet.dtb
> bootm 0x80000 - dtb addr
>
> Yeah, zImage, newer u-boots are supposed to be
> happy with a zImage instead of a uImage. :D I
> don't know what the normal dtb load addr is yet
> for kirkwoods but I'm going to ping those playing
> with it on the linux-arm list.

@Kurlon,

Do you know where is the normal dtb load addr for kirkwoods?

Thanks,

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: kernel 3.5 and device-tree support...
April 28, 2013 03:48PM
I got the U-Boot 2013.01 running with FDT-enabled kernel 3.6.11 on a GoFlex Net.

U-Boot 2013.01 has most of the board definitions, except for GoFlex Net/Home and Pogoplug Mobile/V4.

So we coud have these versions:

uboot.2013.01.goflexnet.mtd0.kwb
uboot.2013.01.iconnect.mtd0.kwb
uboot.2013.01.dockstar.mtd0.kwb
uboot.2013.01.pogo_e02.mtd0.kwb
uboot.2013.01.sheevaplug.mtd0.kwb

I'm looking to add the Pogo V4 to this group. Will do more testing and post back.

@Davy, I could do more testing for SATA booting, if you provide the patch.

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



Edited 1 time(s). Last edit at 04/28/2013 04:00PM by bodhi.
Re: kernel 3.5 and device-tree support...
May 02, 2013 12:11AM
U-Boot 2013.01 boots fine with either non-FDT or FDT kernel. However, it seems that netconsole is broken. A strange problem I'm seeing is that the 2nd character is lost on the netconsole prompt. For example:

> setenv
became
> stenv

And typing
> booot
would get it continue booting, but it never boot the kernel successfully from netconsole.

Booting with or without serial console does not have this problem.
Re: kernel 3.5 and device-tree support...
June 14, 2013 03:58PM
Hi bodhi,

Are you/davy any closer to an FDT compatible uboot for DockStar?
Re: kernel 3.5 and device-tree support...
June 14, 2013 04:32PM
duduke,

As mentioned above and in other uBoot threads, I'm stuck at a netconsole problem. Even with the latest version (2003.04), I'm seeing this problem in my build. I've successfully booted a GoFlex Net and Pogo E02 with uBoot for FDT kernel (both in serial console manual booting and booting without interrupting). So I'm confident that it works, as long as netconsole is not activated during booting. I've also tested a Dockstar uBoot (only booting uBoot, not kernel) version, but have not flashed it, since I don't have JTAG to test with, atm.

Because not everybody has serial console to recover, netconsole is pretty important, so I did not upload it for general consumption.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: kernel 3.5 and device-tree support...
June 15, 2013 10:37PM
3.8 is available in testing

root@debian:~# uname -a
Linux debian 3.8-2-kirkwood #1 Debian 3.8.13-1 armv5tel GNU/Linux
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: