Author Topic: Sd Support!  (Read 21415 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Sd Support!
« Reply #30 on: May 05, 2007, 07:00:22 am »
Now i am trying to reformat the 4GB SD into ext2 and mount it under obsd.
Following Andy's suggestion,
first i used disklabel -E sd0
then choose "a" to add a device
after offset and size,
I am asked to assign an FS type.
The default is "4.2BSD".
I try "Ext2", "ext2", "Linux", but i am told that it is "Unrecognized filesystem type..., treating as 'unknown'"
Then I try "MSDOS", which is supported,
but when i try to save, i got this:
Code: [Select]
Write new label: [y]
disklabel: ioctl DIOCWDINFO: Input/output error
disklabel: unable to write label
« Last Edit: May 05, 2007, 07:01:15 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Sd Support!
« Reply #31 on: May 05, 2007, 08:59:55 am »
Quote
Code: [Select]
Write new label: [y]
disklabel: ioctl DIOCWDINFO: Input/output error
disklabel: unable to write label

Read your last post and you'll see why this is occuring.    Here's the quote:

Quote
there is no SD write support so installing things to SD is not feasible.

hence, changing the disklabel via the onboard SD slot is unsupported at the moment , Use a supported external SD reader/writer to change the disklabel. However, writing to the SD card will result in the same input/output error no matter what filesystem it has been formatted with.
« Last Edit: May 05, 2007, 09:12:58 am by mathemajikian »

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Sd Support!
« Reply #32 on: May 13, 2007, 06:11:48 am »
Quote
If you aren't too fussed about what is on the drive I would suggest that you run..

disklabel -E sd0

Then add a partition, possibly a, and set it up in the disklabel then make your ffs or ext2 filesystem from OpenBSD.

[div align=\"right\"][a href=\"index.php?act=findpost&pid=160311\"][{POST_SNAPBACK}][/a][/div]
@Andy:
How to make ext2 using disklabel? I've tried ext2, Ext2, EXT2, Linux, LINUX, all these are invalid. The man page of disklabel doesn't mention ext2 at all.
Searching "ext2" in the Man page search and i only got fsck_ext2fs (8) and mount_ext2fs (8).
Any hint? Thanks!
« Last Edit: May 13, 2007, 06:12:28 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Sd Support!
« Reply #33 on: May 13, 2007, 02:47:40 pm »
Quote
Quote
If you aren't too fussed about what is on the drive I would suggest that you run..

disklabel -E sd0

Then add a partition, possibly a, and set it up in the disklabel then make your ffs or ext2 filesystem from OpenBSD.

[div align=\"right\"][a href=\"index.php?act=findpost&pid=160311\"][{POST_SNAPBACK}][/a][/div]
@Andy:
How to make ext2 using disklabel? I've tried ext2, Ext2, EXT2, Linux, LINUX, all these are invalid. The man page of disklabel doesn't mention ext2 at all.
Searching "ext2" in the Man page search and i only got fsck_ext2fs (8) and mount_ext2fs (8).
Any hint? Thanks!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161210\"][{POST_SNAPBACK}][/a][/div]


I have fdisked the 4gb SD under the dualboot Cacko. Tried both FAT and Ext2 but the card fails to be recognized under obsd.

disklabel sd0 says:  /dev/rsd0c: Device not configured

fdisk sd0 says: sd0: Device not configured

So I turned to my Mac...
Just found e2fsprogs and installed it in my OBSD setup on Macbook@Parallels.
First I used disklabel -E sd0 to add a partition [a], then choose the BSD4.2 as FS type.
After that I used mke2fs to create an ext2 filesystem on this SD.
This SD can be detected and mounted in OBSD on my Mac.
disklabel sd0 shows two partitions, [c] and [a] (the newly created one).
The card can be detected and mounted in Cacko on my 3200.

But ...

The 4.1 official release doesn't seem to have SD support at all.
So I install the latest kernel (dated 8 May).
Reboot and now the SD is detected.

But ...

on my 3200, disklabel sd0 shows only [c], and no [a].

So, now the card can be read by Mac@OBSD, 3200@Cacko, but not 3200@OBSD!
What do i do?
Did I go wrong in the attempt?
Thanks!
« Last Edit: May 13, 2007, 02:50:11 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Sd Support!
« Reply #34 on: May 16, 2007, 09:10:59 am »
It seems that the current SD support is rather picky. My 1gb FAT16 SD can be detected and mounted, but my 4gb FAT32/Ext2/Ext3 SD simply fails. Hope this will fixed soon.
« Last Edit: May 16, 2007, 09:11:31 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Sd Support!
« Reply #35 on: May 30, 2007, 05:25:11 pm »
Quote
Thanks, Andy!
Here is the output of disklabel sd0:
Code: [Select]
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: Drive #01
flags:
bytes/sector: 2048
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 125
total sectors: 2010112
rpm: 3600
interleave: 1
trackskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#           size     offset   fstype  [fsize bsize  cpg]
     c:   2010112          0   unused       0     0      # Cyl        0 -     125*
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160295\"][{POST_SNAPBACK}][/a][/div]


i've just tried my 4gb Transcend sdcard under latest openbsd GENERIC#113 and i have the same problem with the same disklabel output... however mine is fat formatted... no hope to mount it ?
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Sd Support!
« Reply #36 on: May 30, 2007, 07:31:32 pm »
Not sure if it is relevant. For cards bigger than 2gb it has to be FAT32. And for now OBSD's SD driver doesn't seem to like FAT32 at all.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]