Kirkwood in DTocalypse Land

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: Kirkwood in DTocalypse Land

Postby pepedog » Sat Mar 09, 2013 11:52 pm

This guy is working on cubox
http://www.solid-run.com/phpbb/viewtopic.php?f=9&t=1205
Note in readme file how it turns zimage and dts into a single uImage
Trimslice is ready too
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Kirkwood in DTocalypse Land

Postby nielsek » Sat Mar 23, 2013 1:08 pm

I have a GoFlex Net and I have system installed on internel NAND. Do I need to change the bootargs in kirkwood-goflexnet.dts and compile new kirkwood-goflexnet.dtb?
I see currently there is "root=/dev/sda1"
nielsek
 
Posts: 3
Joined: Mon Oct 08, 2012 8:35 am

Re: Kirkwood in DTocalypse Land

Postby Kurlon » Sat Mar 23, 2013 3:01 pm

Yes, you'll want to update the bootargs, or remove them completely and rely on uboot's supplied args. Compile the dts to a dtb, then append that to the end of the supplied zImage and finally make a uImage from the zImage.
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm

Re: Kirkwood in DTocalypse Land

Postby bodhi » Sat Mar 23, 2013 8:01 pm

@kurlon,

I saw a few Kirkwood devices now have DT support in 3.6.x or later. Is there any plan to implement DT for the rest of other Kirkwood devices such as GoFlex Home, Pogo E02 and V4?

Thanks,
-bodhi
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: Kirkwood in DTocalypse Land

Postby Kurlon » Sat Mar 23, 2013 8:47 pm

I'm building the kernels with support for every mainlined kirkwood with DT support currently. As the DT support for Kirkwood grows, it gets easier and easier to bring up new units. If you want to try and bring up a device like the GF Home, lemmie know and I'll see if I can help.
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm

Re: Kirkwood in DTocalypse Land

Postby bodhi » Sat Mar 23, 2013 9:50 pm

Thanks Kurlon, I've read your guide at Jeff Doozan forum, it's pretty clear, a straightforward procedure. I'll give it a try for the GFhome and let you know!
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: Kirkwood in DTocalypse Land

Postby nielsek » Sun Mar 24, 2013 10:29 am

$this->bbcode_second_pass_quote('Kurlon', 'Y')es, you'll want to update the bootargs, or remove them completely and rely on uboot's supplied args. Compile the dts to a dtb, then append that to the end of the supplied zImage and finally make a uImage from the zImage.

So I should delete the following part from the dts file, build new dtb and cat it to your zImage file?
chosen {
bootargs = "console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10";
};
nielsek
 
Posts: 3
Joined: Mon Oct 08, 2012 8:35 am

Re: Kirkwood in DTocalypse Land

Postby Kurlon » Sun Mar 24, 2013 3:02 pm

Exactly.
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm

Re: Kirkwood in DTocalypse Land

Postby nielsek » Sat Mar 30, 2013 7:24 am

Hi.

I tried it, but no luck. I get lots of "Bad eraseblock" messages. Seems it can't attach the UBI device as root?

[ 12.289021] Bad eraseblock 2047 at 0x00000ffe0000
[ 12.293765] 4 cmdlinepart partitions found on MTD device orion_nand
[ 12.300077] Creating 4 MTD partitions on "orion_nand":
[ 12.305239] 0x000000000000-0x000000100000 : "u-boot"
[ 12.311066] 0x000000100000-0x000000500000 : "uImage"
[ 12.316776] 0x000000500000-0x000002500000 : "rootfs"
[ 12.322522] 0x000002500000-0x000010000000 : "data"
[ 12.328717] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 12.335627] libphy: mv643xx_eth smi: probed
[ 12.341682] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC addresd
[ 12.350581] pch_gbe: EG20T PCH Gigabit Ethernet Driver - version 1.01
[ 12.357130] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 12.363775] orion-ehci f1050000.ehci: Marvell Orion EHCI
[ 12.369157] orion-ehci f1050000.ehci: new USB bus registered, assigned bus n1
[ 12.376997] orion-ehci f1050000.ehci: irq 19, io mem 0xf1050000
[ 12.396787] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[ 12.403409] hub 1-0:1.0: USB hub found
[ 12.407220] hub 1-0:1.0: 1 port detected
[ 12.411467] ehci-pci: EHCI PCI platform driver
[ 12.416037] Initializing USB Mass Storage driver...
[ 12.421049] usbcore: registered new interface driver usb-storage
[ 12.427101] USB Mass Storage support registered.
[ 12.432050] mousedev: PS/2 mouse device common for all mice
[ 13.446788] rtc-mv f1010300.rtc: internal RTC not ticking
[ 13.452596] sdhci: Secure Digital Host Controller Interface driver
[ 13.458822] sdhci: Copyright(c) Pierre Ossman
[ 13.463270] sdhci-pltfm: SDHCI platform and OF driver helper
[ 13.469032] leds-gpio gpio-leds.1: pins are not configured from the driver
[ 13.477254] usbcore: registered new interface driver r8712u
[ 13.483050] gre: GRE over IPv4 demultiplexor driver
[ 13.488094] TCP: cubic registered
[ 13.491425] NET: Registered protocol family 17
[ 13.495989] Key type dns_resolver registered
[ 13.500902] registered taskstats version 1
[ 13.505937] USB Power: 5000 mV
[ 13.509443] UBI: attaching mtd3 to ubi0
[ 13.513877] UBI: scanning is finished
[ 13.517594] UBI: empty MTD device detected
[ 13.521799] UBI error: ubi_early_get_peb: no free eraseblocks
[ 13.527658] UBI error: ubi_attach_mtd_dev: failed to attach mtd3, error -28
[ 13.534684] UBI error: ubi_init: cannot attach mtd3
[ 13.539613] console [netcon0] enabled
[ 13.543288] netconsole: network logging started
[ 13.547921] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 13.554571] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", err9
[ 13.562215] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)9
[ 13.570266] Please append a correct "root=" boot option; here are the availa:
[ 13.578682] 0800 1953514584 sda driver: sd
[ 13.583327] 0801 2097152 sda1 edd2f8ae-3cca-4e9b-aa3f-aa7cdf55967f
[ 13.590435] 0802 2097152 sda2 215f4f13-c44b-4f6f-9927-71754b20d899
[ 13.597534] 0803 209715200 sda3 5af22d29-d0f7-4a83-a1ab-dcb9c6c4c927
[ 13.604621] 0804 262144 sda4 c71cab3d-92c5-4ff9-a32f-61c3f5261d85
[ 13.611720] 0805 1739341895 sda5 2151ba69-c90f-4efd-bbdf-7d16fc7a37de
[ 13.618818] 0806 1007 sda6 2749a5aa-96ad-42f7-8b1f-e7147fe222d4
[ 13.625909] 0810 1465138584 sdb driver: sd
[ 13.630574] 0811 1465137543 sdb1 30faa68b-6a84-445d-b33d-5dee36bf2872
[ 13.637671] 0812 1007 sdb2 69ce957b-bf2e-4d12-85eb-a0ed5beae5d9
[ 13.644760] 1f00 1024 mtdblock0 (driver?)
[ 13.649862] 1f01 4096 mtdblock1 (driver?)
[ 13.654944] 1f02 32768 mtdblock2 (driver?)
[ 13.660038] 1f03 224256 mtdblock3 (driver?)
[ 13.665119] Kernel panic - not syncing: VFS: Unable to mount root fs on unkn)
[ 13.673452] [<c000dab4>] (unwind_backtrace+0x0/0xe0) from [<c04588f4>] (pani)
[ 13.681686] [<c04588f4>] (panic+0x80/0x1dc) from [<c05f9d20>] (mount_block_r)
[ 13.690172] [<c05f9d20>] (mount_block_root+0x260/0x2b4) from [<c05f9f5c>] (p)
[ 13.699702] [<c05f9f5c>] (prepare_namespace+0x88/0x1bc) from [<c05f9970>] (k)
[ 13.709582] [<c05f9970>] (kernel_init_freeable+0x1bc/0x204) from [<c0456c08>)
[ 13.718761] [<c0456c08>] (kernel_init+0x8/0xe4) from [<c0008d70>] (ret_from_)
nielsek
 
Posts: 3
Joined: Mon Oct 08, 2012 8:35 am

Re: Kirkwood in DTocalypse Land

Postby bodhi » Sat Apr 13, 2013 4:42 am

@Kurlon,

I've been trying unsuccessfully booting GoFlex Net using Debian kernel 3.6.11 that I built from the mainline source tree, with no patch. The instruction I followed was from this thread (appending the dtb file to zImage and make uImage):
http://forum.doozan.com/read.php?2,8177,9160#msg-9160

I used Davy's uBoot (U-Boot 2011.12 (Apr 18 2012 - 23:08:20) for Seagate GoFlexNet. I also tried clearing arcNumber and bootargs in netconsole before booting. Basically, all the hints in the above thread.

I've attached config file here
http://forum.doozan.com/read.php?2,8177,12206#msg-12206

Appreciate if you can take a look to see if I've missed anything in there :)
Thanks,

-bodhi
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 18 guests