• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Linux Stuff / General Linux questions / Re: Constant ioctl_internal_command Error on: October 03, 2012, 12:07:33 AM
Update

I solved the main issue here by killing these processes:

Code:
1795 root      20   0  3812 1116  972 S  1.0  0.2   7:52.06 hald-addon-stor              
 1798 root      20   0  3812 1116  972 S  0.0  0.2   0:02.34 hald-addon-stor

Of course the id differs every boot but you get the idea


Now I'm working on solving the GPIO timer issue (left it on for 6 days and I ended up with a 200MB Log! Annoying), someone more knowledgeable than me looked into it and pointed me to these files:

d2plug-linux-2.6.32.y\drivers\staging\dream\

Code:
-rw-r--r-- 1 1000 1000  5474 Jun 27  2011 gpio_axis.c
-rw-r--r-- 1 1000 1000  5554 Jun 27  2011 gpio_event.c
-rw-r--r-- 1 1000 1000 10084 Jun 27  2011 gpio_input.c
-rw-r--r-- 1 1000 1000 11594 Jun 27  2011 gpio_matrix.c
-rw-r--r-- 1 1000 1000  2339 Jun 27  2011 gpio_output.c

They're within the kernel I assume. Do I need to upgrade my kernel? I'm currently using the latest one you can get from the DreamPlug google code site. Should I rollback to the old one? I'm assuming I can't just patch the existing kernel?
2  Linux Stuff / General Linux questions / Constant ioctl_internal_command Error on: September 20, 2012, 11:41:26 PM
I've searched everywhere for a solution to this but none of the methods currently being used work for me. I'm getting this error continuously from my DreamPlug:

Code:
Sep 20 23:30:05 dreamplug-debian kernel: [  341.179282] sd 0:0:0:0: ioctl_internal_command return code = 8000002
Sep 20 23:30:05 dreamplug-debian kernel: [  341.185695]   the gpio timer is called ! time is 330
Sep 20 23:30:05 dreamplug-debian kernel: [  341.190915]    : Sense Key : 0x3 [current]
Sep 20 23:30:05 dreamplug-debian kernel: [  341.196579]    : ASC=0x30 ASCQ=0x0
Sep 20 23:30:05 dreamplug-debian kernel: [  341.200664] sd 0:0:0:0: ioctl_internal_command return code = 8000002
Sep 20 23:30:05 dreamplug-debian kernel: [  341.208039]    : Sense Key : 0x3 [current]
Sep 20 23:30:05 dreamplug-debian kernel: [  341.212334]    : ASC=0x30 ASCQ=0x0
Sep 20 23:30:06 dreamplug-debian kernel: [  342.184014]   the gpio timer is called ! time is 331
Sep 20 23:30:07 dreamplug-debian kernel: [  343.179034] sd 0:0:0:0: ioctl_internal_command return code = 8000002
Sep 20 23:30:07 dreamplug-debian kernel: [  343.185446]   the gpio timer is called ! time is 332
Sep 20 23:30:07 dreamplug-debian kernel: [  343.190669]    : Sense Key : 0x3 [current]
Sep 20 23:30:07 dreamplug-debian kernel: [  343.196294]    : ASC=0x30 ASCQ=0x0
Sep 20 23:30:07 dreamplug-debian kernel: [  343.200540] sd 0:0:0:0: ioctl_internal_command return code = 8000002
Sep 20 23:30:07 dreamplug-debian kernel: [  343.207912]    : Sense Key : 0x3 [current]
Sep 20 23:30:07 dreamplug-debian kernel: [  343.212214]    : ASC=0x30 ASCQ=0x0
Sep 20 23:30:08 dreamplug-debian kernel: [  344.184011]   the gpio timer is called ! time is 333
Sep 20 23:30:09 dreamplug-debian kernel: [  345.179157] sd 0:0:0:0: ioctl_internal_command return code = 8000002
Sep 20 23:30:09 dreamplug-debian kernel: [  345.185568]   the gpio timer is called ! time is 334
Sep 20 23:30:09 dreamplug-debian kernel: [  345.190789]    : Sense Key : 0x3 [current]
Sep 20 23:30:09 dreamplug-debian kernel: [  345.196364]    : ASC=0x30 ASCQ=0x0
Sep 20 23:30:09 dreamplug-debian kernel: [  345.200539] sd 0:0:0:0: ioctl_internal_command return code = 8000002
Sep 20 23:30:09 dreamplug-debian kernel: [  345.207910]    : Sense Key : 0x3 [current]
Sep 20 23:30:09 dreamplug-debian kernel: [  345.212207]    : ASC=0x30 ASCQ=0x0
Sep 20 23:30:10 dreamplug-debian kernel: [  346.184015]   the gpio timer is called ! time is 335
Sep 20 23:30:11 dreamplug-debian kernel: [  347.179157] sd 0:0:0:0: ioctl_internal_command return code = 8000002
Sep 20 23:30:11 dreamplug-debian kernel: [  347.185570]   the gpio timer is called ! time is 336
Sep 20 23:30:11 dreamplug-debian kernel: [  347.190792]    : Sense Key : 0x3 [current]
Sep 20 23:30:11 dreamplug-debian kernel: [  347.196393]    : ASC=0x30 ASCQ=0x0
Sep 20 23:30:11 dreamplug-debian kernel: [  347.200539] sd 0:0:0:0: ioctl_internal_command return code = 8000002
Sep 20 23:30:11 dreamplug-debian kernel: [  347.207916]    : Sense Key : 0x3 [current]
Sep 20 23:30:11 dreamplug-debian kernel: [  347.212217]    : ASC=0x30 ASCQ=0x0

You'll also notice the 'gpio timer' in there, this isn't as important but if anyone knows how to get rid of that that'd be great too. Anyway my main worry here is causing a crash, I need this system to be reliable. I also could do without the clogged up logs. I'm booting off an SD card and running Debian. Any idea how to get ride of these errors??

Thanks in advance
3  Hardware and U-Boot firmware / U-Boot stuff / Re: DreamPlug Internal SD Card Boot 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.

4  Hardware and U-Boot firmware / U-Boot stuff / Re: DreamPlug Internal SD Card Boot 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.
5  Hardware and U-Boot firmware / U-Boot stuff / Re: DreamPlug Internal SD Card Boot 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
6  Hardware and U-Boot firmware / U-Boot stuff / Re: DreamPlug Internal SD Card Boot 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.
7  Hardware and U-Boot firmware / U-Boot stuff / Re: DreamPlug Internal SD Card Boot 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)
8  Hardware and U-Boot firmware / U-Boot stuff / Re: DreamPlug Internal SD Card Boot 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
9  Hardware and U-Boot firmware / U-Boot stuff / Re: DreamPlug Internal SD Card Boot 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.
10  Hardware and U-Boot firmware / U-Boot stuff / Re: DreamPlug Internal SD Card Boot 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?
11  Hardware and U-Boot firmware / U-Boot stuff / DreamPlug Internal SD Card Boot 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?
Pages: [1]