• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: DreamPlug Internal SD Card Boot  (Read 7848 times)
jinxc
Newbie
*

Karma: 0
Posts: 11


View Profile
« on: April 17, 2011, 12:25:16 PM »

I accidentally erased the internal SD card after a chmod catastrophe shortly after getting my DreamPlug. At the moment I have the card reloaded with the uImage on one partition (FAT16) and the root file system (from the DreamPlug download site) on another partition formatted as EXT2. On the rare occasion that my jtag unit does make a serial connection between the DreamPlug and my mac (After jiggling wires for a half hour or so...) I try to follow guides from the wiki on making the SD card bootable. But it seems like these guides were all written for the GuruPlug and since there's no other plug out there with internal SD I figured the forum was the last place to go before I admit defeat.

Basically:  How do I make the internal SD bootable again? And is there any trick to making my jtag connectors make a connection?
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #1 on: April 17, 2011, 06:24:39 PM »

What is error message you got when you try to boot? there are no magic setting to make the internal uSD bootable. all setup is in the u-boot environment so as long as you still have your u-boot environment intact than there is no reason why you can not boot.
Logged

Good Luck Smiley

jinxc
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #2 on: April 18, 2011, 11:59:39 AM »

It says it could not find the kernel image, I'm assuming this means it couldn't find uImage?
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #3 on: April 18, 2011, 01:38:44 PM »

OK, since we are not able to see the screen, we will have to do step by step process.

First get in to Marvell>> prompt. now do
Code:
MArvell>> usb start
Marvell>> usb storage
the result should stated it have at lease one storage found. if not than you need to check if you have the uSD insert correctly and re do the step above to prove it. once you have it working then do
Code:
Marvell>> fatls usb 0 /
The result should show at lease have a file name "uImage", if not than you have not successful load uImage to the first partition as you stated in the first post, please go back and try to correct it.

If you do get correct result then please post your u-boot env so we can debug from there.

If it is possible please post each step result as is. it will help to understand the situation.

Good luck Smiley
Logged

Good Luck Smiley

jinxc
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #4 on: April 18, 2011, 06:25:34 PM »

Alright I'll give that a try

The JTAG connection itself is the most trouble for me right now, it is very very undependable. It could be awhile before I get into the serial console.
Logged

jinxc
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #5 on: April 18, 2011, 07:44:07 PM »

Looks like I got lucky with the connection here's the output:

Code:
Marvell>> fatls usb 0 /
  2712400   uimage

1 file(s), 0 dir(s)

Marvell>> printenv
bootcmd=setenv ethact egiga0; ${x_bootcmd_ethernet}; setenv ethact egiga1; ${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x6400000;
bootdelay=3
baudrate=115200
x_bootcmd_ethernet=ping 192.168.2.1
x_bootcmd_usb=usb start
x_bootcmd_kernel=fatload usb 0 0x6400000 uImage
x_bootargs=console=ttyS0,115200
x_bootargs_root=root=/dev/sda2 rootdelay=10
ethact=egiga0
ethaddr=F0:AD:4E:00:71:FE
eth1addr=F0:AD:4E:00:71:FF
stdin=serial
stdout=serial
stderr=serial
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #6 on: April 18, 2011, 08:26:40 PM »

ok, looks good. now do
Code:
Marvell>> fatload usb 0 0x06400000 uImage
This will load the kernel at 0x06400000, now setup console and tell kernel where is root file system by
Code:
Marvell>> setenv bootargs console=ttyS0,152000 root=/dev/sda2 rootdelay=10
Marvell>> bootm 0x06400000
the last command "bootm ..." should start booting linux, so base on your first post this should be where it failed, please post the command you entered and its output, we will have to check during steps above where it failed.

Good luck Smiley
Logged

Good Luck Smiley

jinxc
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #7 on: April 18, 2011, 10:52:18 PM »

Code:
Marvell>> fatload usb 0 0x06400000 uImage

** Invalid boot device **

Also, a better idea of my partition table:
/dev/sdc1 --> FAT16 and contains uImage only (Partition is about 100 MB)
/dev/sdc2 --> EXT2 and contains the root file system (Partition is 1.8 GB I think or whatever is left of the 2 GB card)
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #8 on: April 19, 2011, 06:18:00 AM »

I am little bit confuse, you should not get the "Invalid boot device" message after you have successful run "fatls usb 0 ..." command. did you reset in between the two commands? so let me reiterate sequence
Code:
Marvell>> reset
Marvell>> usb start
Marvell>> fatls usb 0 /
Marvell>> fatload usb 0 0x06400000 uImage
Please post output from all of above command sequence.

Good luck Smiley
Logged

Good Luck Smiley

jinxc
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #9 on: April 25, 2011, 11:18:03 PM »

Sorry for the lack of replies, the JTAG has ceased working entirely I'll contact support and see if I can get back to you on the commands you gave me.
Logged

jinxc
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #10 on: September 10, 2011, 01:57:58 PM »

I am little bit confuse, you should not get the "Invalid boot device" message after you have successful run "fatls usb 0 ..." command. did you reset in between the two commands? so let me reiterate sequence
Code:
Marvell>> reset
Marvell>> usb start
Marvell>> fatls usb 0 /
Marvell>> fatload usb 0 0x06400000 uImage
Please post output from all of above command sequence.

Good luck Smiley

Sorry for the huge delay the JTAG just started working again, here's the output:

Code:
Marvell>> reset
resetting ...


U-Boot 2011.06-02334-g8f495d9-dirty (Mar 01 2011 - 06:57:05)
Marvell-DreamPlug

SoC:   Kirkwood 88F6281_A0
DRAM:  512 MiB
SF: Detected MX25L1606 with page size 256, total 1 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
PHY reset timed out
88E1121 Initialized on egiga0
88E1121 Initialized on egiga1
Hit any key to stop autoboot:  0
*** ERROR: `ipaddr' not set
ping failed; host 192.168.2.1 is not alive
No link on egiga1
*** ERROR: `ipaddr' not set
ping failed; host 192.168.2.1 is not alive
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 4 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
reading uImage

0 bytes read
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Marvell>>
Marvell>> usb start
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 4 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Marvell>> fatls usb 0 /
  2712400   uimage

1 file(s), 0 dir(s)

Marvell>> fatload usb 0 0x06400000 uimage
reading uimage

0 bytes read
Logged

jinxc
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #11 on: September 10, 2011, 04:03:26 PM »

UPDATE

Just tried putting a new image on the internal card from http://downloadsnewit.co.uk/SD-images/Dreamplug/ex-factory-2011-04-24-Ubuntu-NewIT-fixed/

Finally it loads the kernel but it's stuck at booting.

Here's what I get:


Code:
U-Boot 2011.06-02334-g8f495d9-dirty (Mar 01 2011 - 06:57:05)
Marvell-DreamPlug

SoC:   Kirkwood 88F6281_A0
DRAM:  512 MiB
SF: Detected MX25L1606 with page size 256, total 1 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
PHY reset timed out
88E1121 Initialized on egiga0
88E1121 Initialized on egiga1
Hit any key to stop autoboot:  0
*** ERROR: `ipaddr' not set
ping failed; host 192.168.2.1 is not alive
No link on egiga1
*** ERROR: `ipaddr' not set
ping failed; host 192.168.2.1 is not alive
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 4 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
reading uImage

2712400 bytes read
## Booting kernel from Legacy Image at 06400000 ...
   Image Name:   Linux-2.6.33.6
   Created:      2011-02-08   8:18:48 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2712336 Bytes = 2.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Logged

jinxc
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #12 on: January 07, 2012, 02:12:37 PM »

Alright so GlobalScale sent me a re-manufactured DreamPlug, which was nice of them and now everything is fine. I'll make sure not to mess with anything in U-Boot again.

Logged

Pages: [1]
Print
Jump to: