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...
August 11, 2012 08:10AM
Use the append option if your u-boot doesn't let you load the dtb directly. The amount of ram is specified in the DTS file, if you copied the GoFlex you'll only see 128MB.
Re: kernel 3.5 and device-tree support...
August 11, 2012 08:29AM
is this right for the 256mb ram?
reg = <0x00000000 0x10000000>

Im gona go a lil crazy with my ix2-200 today i think and put the uInitrd and uImage on the nand instead of on usb and see how it goes. From what i could tell after seeing a lil more of the boot of mine it keeps saying the uInitrd is full of junk or something. so the uInitrd isnt there to load any of the drivers and such for the device.

and i think by mistake im after deleting the ubuntu vm i was doing the work on DOH!
Re: kernel 3.5 and device-tree support...
August 11, 2012 04:57PM
I dont know how or why but for some reason the 3.6 kernel just booted.

There was no output from the serial from the time the uInitrd was loaded then just all of a sudden it was booted.
There was no sata's though so not sure how why or what loaded it. Before this even with my ix2200 selected in the config it didnt work at boot just said board support not available.

Anyone have any idea what the arcNumber for the ix2-200 i saw it before but cant find it again?
Re: kernel 3.5 and device-tree support...
August 11, 2012 05:15PM
arcNumber 3119
Iomega StorCenter ix2-200
Re: kernel 3.5 and device-tree support...
August 11, 2012 05:23PM
Thanks will see if it does anything.
Re: kernel 3.5 and device-tree support...
August 12, 2012 04:55AM
Im almost there its booting but I just have 2 majorish problems:

1st: after loading the uImage and uInitrd there is no output from the serial until the system is booted.

2nd: the sata's are not being setup / detected.

Anybody have any idea's?

edit 1:
fixed the serial issue that was just something in the uboot bootargs that i didnt set properly while testing the kernel.
still have the issue with the sata though this is how the serial output is when the kernel gets to the sata part:
[....] Starting the hotplug events dispatcher: udevd[   25.082778] udevd[340]: starting version 175
. ok
[....] Synthesizing the initial hotplug events...udevd[370]: timeout 'scsi_id --whitelisted --replace-whitespace -p0x80 -d/dev/sda'

[   25.636981] sata_mv sata_mv.0: cannot get optional clkdev
[   25.642492] sata_mv sata_mv.0: slots 32 ports 2
udevd[370]: timeout '/sbin/blkid -o udev -p /dev/sda'

done.
[....] Waiting for /dev to be fully populated...^_udevd[374]: timeout: killing '/sbin/modprobe -b platform:sata_mv' [401]

udevd[374]: timeout: killing '/sbin/modprobe -b platform:sata_mv' [401]

udevd[374]: timeout: killing '/sbin/modprobe -b platform:sata_mv' [401]

edit 2:
Has anyone seen a fix for the sata_mv problem?

i have a working config and dts file but i also need a different entry instead of "iom,ix2-200" as it does not seem to be detecting right just says the support is not there.
But if i just modify the rd88f6281 setup file and use my dts everything works fine except for the sata's.



Edited 2 time(s). Last edit at 08/12/2012 11:07AM by Buttzy10169.
Re: kernel 3.5 and device-tree support...
August 13, 2012 07:28AM
I just tried the latest kernel source from git as of about 30 minutes ago.

The kernel works by modifying the rd88f6281 config file and creating the dts but then hangs and keeps repeating the following:
udevd[54]: timeout: killing '/sbin/modprobe -b usb:v13FDp1840d0103dc00dsc00dp00ic08isc06ip50in00' [77]

udevd[56]: timeout: killing '/sbin/modprobe -b platform:sata_mv' [73]

Seems like something is broken in either the sata_mv or the ehci controller that stops drives from being loaded or mounted. Anyone run into similar problems? or have any idea's of what i can try next?
Re: kernel 3.5 and device-tree support...
August 13, 2012 09:11AM
I finally got 3.5.1 for kirkwoods out the door in Arch, I'm doing some test builds now of 3.6-rc1 and next-08132012 to see what I can sniff out on my GFN. (It's times like this I really wish I had an OpenRD or a good ARMv7 system to do my builds on...)
Re: kernel 3.5 and device-tree support...
August 13, 2012 11:19AM
How are you getting them to boot?

I have tried multiple time's i think i have a working dts and config but on all kernels i try 3.5, 3.6-rc1 and linux next it seems to hang around the usb and sata_mv initialisation.

Only other thing i need is the proper definition for my device as iom,ix2-200 keep's telling me that there is no support in the kernel.
Re: kernel 3.5 and device-tree support...
August 13, 2012 11:42AM
The Arch stuff isn't using DT, it's a rehash of the 3.1 patchset updated for 3.5 and polished up. My DT stuff I append the DTB to the end of the zImage, make a uImage off that and boot without any bootargs or arcnumber set. I go by the bootargs in the DTB.
Re: kernel 3.5 and device-tree support...
August 13, 2012 12:31PM
I think I have tried that but it still didnt boot but will give it a shot.

What way do you clear the bootargs?
Re: kernel 3.5 and device-tree support...
August 13, 2012 01:02PM
My bootargs get set as part of the normal boot script, so when I want to test a DT kernel I interrupt the boot before the auto cmds are run.
Re: kernel 3.5 and device-tree support...
August 13, 2012 02:14PM
I think i tried both declareing in uboot and declareing in the dts file and neither worked i still get the same errors as above with the sata_mv and usb like i posted above with the latest git. if the sata's are working for you in git the latest kernel and git then there must just be sumthing up with my dts or board config.
Re: kernel 3.5 and device-tree support...
August 13, 2012 05:05PM
Looks like there was a regression somewhere, I'm seeing the same hang on 3.6-rc1 and the current next cut, the last thing I see is:

[   15.283577] VFS: Disk quotas dquot_6.5.2                                     
[   15.287832] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)       
[   15.296545] jffs2: version 2.2. (NAND) ?© 2001-2006 Red Hat, Inc.            
[   15.303202] msgmni has been set to 240                                       
[   15.308503] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
[   15.316021] io scheduler noop registered                                     
[   15.320149] io scheduler deadline registered                                 
[   15.324558] io scheduler cfq registered (default)                            
[   15.329462] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver         
[   15.335962] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver         
[   15.376751] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )                        
[   15.416736] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )                   
[   15.456735] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )                        
[   15.496734] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )                   
[   15.506309] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled         
[   15.518967] brd: module loaded                                               
[   15.524991] loop: module loaded                                              
[   15.528584] sata_mv sata_mv.0: cannot get optional clkdev                    
[   15.534180] sata_mv sata_mv.0: slots 32 ports 2

Then all is silent. I'm also not seeing my LED turn green, so something is amiss. This was working in 3.5 when I submitted my GFN patch set for inclusion in 3.6. I'm going to take it up with the arm kernel list to see if I can get some pointers on how to proceed.
Re: kernel 3.5 and device-tree support...
August 13, 2012 06:02PM
Yeah that looks like what i was getting on my ix2-200.
Re: kernel 3.5 and device-tree support...
August 13, 2012 06:05PM
I'm also not seeing my serial port binding after the driver loads in that dmesg output, so something is wacky. Not sure where to dig just yet, but I've got some theories.
Re: kernel 3.5 and device-tree support...
August 13, 2012 09:14PM
for some reason my uImage and uInitrd wont sync now so i keep getting this:
[    2.370103] Waiting 10sec before mounting root device...
[   12.862871] List of all partitions:
[   12.866379] 1f00            3072 mtdblock0  (driver?)
[   12.871460] 1f01           16384 mtdblock1  (driver?)
[   12.876555] No filesystem could mount root, tried: 
[   12.881462] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.889798] [<c000e2a4>] (unwind_backtrace+0x0/0xe0) from [<c02e3c8c>] (panic+0x78/0x1d4)
[   12.898027] [<c02e3c8c>] (panic+0x78/0x1d4) from [<c03f8c90>] (mount_block_root+0x238/0x288)
[   12.906513] [<c03f8c90>] (mount_block_root+0x238/0x288) from [<c03f8e68>] (prepare_namespace+0x124/0x184)
[   12.916131] [<c03f8e68>] (prepare_namespace+0x124/0x184) from [<c03f8914>] (kernel_init+0x198/0x1d8)
[   12.925311] [<c03f8914>] (kernel_init+0x198/0x1d8) from [<c000a004>] (kernel_thread_exit+0x0/0x8)
Re: kernel 3.5 and device-tree support...
August 13, 2012 09:40PM
Has anyone been able to reproduce my findings, where setting nr_ports = <1> allows booting? My GFN is currently working, but with just one port.

And as I mentioned before, the DTS file shows the correct 256 MB of RAM, but the kernel when booting only shows 128 MB. Something else is wrong here.
Re: kernel 3.5 and device-tree support...
August 13, 2012 09:46PM
I haven't tried dropping nr_ports yet, lemmie test that real quick.

In the mean time, you're saying you have a GoFlex Net with 256MB RAM?
Re: kernel 3.5 and device-tree support...
August 13, 2012 09:56PM
Kurlon Wrote:
-------------------------------------------------------
> I haven't tried dropping nr_ports yet, lemmie test
> that real quick.
>
> In the mean time, you're saying you have a GoFlex
> Net with 256MB RAM?


No, I have two Marvell Kirkwood devices. A GoFlexNet, with 128 MB RAM and now only one working SATA port on 3.6.0-rc1, with nr_ports = <1>. I also have an Iomega iConnect with 256 MB RAM, and only 128 MB accessible with 3.6.0-rc1. I used the appropriate DTB file for each, of course.

Buttzy,
What does your kernel boot log show for RAM on your ix2-200?



Edited 1 time(s). Last edit at 08/14/2012 12:10AM by rpress.
Re: kernel 3.5 and device-tree support...
August 13, 2012 09:59PM
My GoFlex Net still won't boot next 8/13 with nr_ports set to 1, no visible change in console output from nr_ports set at 2. Can you pastebin your config so I can compare it against mine to see what's different?
Re: kernel 3.5 and device-tree support...
August 13, 2012 11:15PM
Here is my .config file for both:
Kernel config

And kernel log from the GFN:
GFN kernel log

I'll get the kernel log from the iConnect later if you want, but in any case it shows "Memory: 128MB = 128MB total"



Edited 1 time(s). Last edit at 08/13/2012 11:30PM by rpress.
Re: kernel 3.5 and device-tree support...
August 14, 2012 03:53AM
My Bootl og shows 256mb ram on my ix2-200 and i also tried the number of ports thing aswel and it didnt work either for me.

Ha any way we can roll back the sata mv changes to the 3.4 kernel ones or something to get them working properly?
Re: kernel 3.5 and device-tree support...
August 14, 2012 05:02AM
Ok, I forgot to set CONFIG_SERIAL_OF_PLATFORM=y on my 3.6-rc1 test kernel. That with SATA set to 1 port has me booting into 3.6-rc1 cleanly. I'm going to retest with SATA set to two ports next.

Edit: 2 ports, same hang I've been chasing...



Edited 1 time(s). Last edit at 08/14/2012 05:28AM by Kurlon.
Re: kernel 3.5 and device-tree support...
August 14, 2012 05:21AM
Cool.

I dont know whats goiing on with mine today now when i build it's telling me there's no support in the darn kernel for my device.

edit:
got that fixed think the dtb was appending properly. I cant seem to get the bootargs right in the dtb file but if i use the ones from the bootloader it boots to the sata_mv problem.

edit 2:
i just tried the nr_ports = <1> and my ix2-200 boots perfectly with it but set it back to 2 and it hangs so it's affecting all kirkwood's it would seem.

Seems like haveing bootargs set in uboot does interfere with the kernel booting i needed to enable
CONFIG_ARM_ATAG_DTB_COMPAT
then remove my bootagrs from uboot.



Edited 3 time(s). Last edit at 08/14/2012 08:17AM by Buttzy10169.
Re: kernel 3.5 and device-tree support...
August 14, 2012 10:05AM
Any body know how to go about submitting your patch?

i think my patch is ready just wanna know what i have to go through to submit it?
Re: kernel 3.5 and device-tree support...
August 14, 2012 11:11AM
So I think my iConnect RAM problem is caused by U-boot not setting up the registers correctly. I tried to modify them in U-boot but it didn't work, so I need to JTAG now. Anyway when I get that figured out I think it will be ok.

Now that just leaves the sata_mv problem on my GFN, it's something pretty simple I'm guessing.
Re: kernel 3.5 and device-tree support...
August 14, 2012 12:05PM
Ha wouldnt it be mad if all it was is someone just put a 1 in somewhere instead of a 2.
Re: kernel 3.5 and device-tree support...
August 14, 2012 07:00PM
I've reported the bug upstream, and have been given a suggestion on where to look codewise for the culprit.

Buttzy, if you read the arm-kernel archives you'll see patch submissions and how to format them. I can try to bang out a crude template in a bit if you'd like.
Re: kernel 3.5 and device-tree support...
August 14, 2012 07:51PM
For those not following the arm-kernel list, the problem wasn't with clocking, it was too small of a reserved memory pool at boot for DMA. Add 'coherent_pool=1M' to your boot args and see if that clears things up when you enable both sata ports.
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: