Author Topic: Sd Support!  (Read 19088 times)

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Sd Support!
« on: March 18, 2007, 10:07:53 pm »
And here it is!   The moment we've all been waiting for:  

$ dmesg
OpenBSD 4.1-current

pxammc0 at pxaip0: MMC/SD/SDIO controller
sdmmc0 at pxammc0
scsibus0 at sdmmc0: 2 targets
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, Drive #01, > SCSI2 0/direct fixed
sd0: 14MB, 14 cyl, 64 head, 32 sec, 512 bytes/sec, 29120 sec total


Now OpenBSD based Z's can utilize the on board sd slot!
« Last Edit: March 20, 2007, 10:37:28 am by mathemajikian »

albertr

  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • http://
Sd Support!
« Reply #1 on: March 18, 2007, 10:40:20 pm »
Great news! Is there any advancement on bluetooth front?
-albertr

HoloVector

  • Hero Member
  • *****
  • Posts: 533
    • View Profile
    • http://
Sd Support!
« Reply #2 on: March 18, 2007, 11:59:01 pm »
That's great news.  Does this mean that the C1000 will be a supported model now?  I would love to try this on mine using my 4GB SD card.
I think I'm coming down with what kahm's got!  I now have 3 Zaurii in house!  ;)
Current: Zaurus SL-C3200 -  Bobby (Configuring pdaXii13 Akita with Full 5.4.9 upgrade running IceWM)
Zaurus SL-C1000 - Hachiko (Configuring Cacko 1.23 with evilJazz's new kernel)
Zaurus SL-C860 - Fett (Customized Cacko 1.23 with handmade Boba Fett Theme)
Symbol WiFi CF card|Buffalo WiFi CF Card|Buffalo Ethernet CF Card|Red Piel Frama Case|PDAir Case|Black Pelican 1020 Case|Pentopia Stylii|SaruTek Protectors|Transcend SDs (4GB 150X, 1GB 80X, 256MB 45X, 128MB 45X)|2GB PNY SD|2GB SanDisk SD|Transcend CFs (1GB 80X, 512MB 80X)|Sandisk CFs (4GB, 512MB, 256MB)|256MB Netac USB-CF|RH-1 Remote
Check out the ScummVM@tyrannozaurus page if you are an "adventurer" type of person.

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Sd Support!
« Reply #3 on: March 19, 2007, 07:24:24 am »
Quote
That's great news.  Does this mean that the C1000 will be a supported model now?  I would love to try this on mine using my 4GB SD card.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156681\"][{POST_SNAPBACK}][/a][/div]

I'm going to see about running OpenBSD off an SD card. I'll post setup instructions if it works. Might take me a little while to complete since I'm undergoing numerous college courses at the moment.
« Last Edit: March 20, 2007, 10:09:46 am by mathemajikian »

Speedy

  • Newbie
  • *
  • Posts: 13
    • View Profile
Sd Support!
« Reply #4 on: March 19, 2007, 07:40:49 am »
Full (SD Booting, CF Extension Cards) OpenBSD support for C1000 will be great! Then my whole computers runs on Openbsd  

What were the steps to do this?
Booting Openbsd from CF Card and try to take the installdrive sd0 (SD Card)? Or is it much complex?

greets
Andi

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Sd Support!
« Reply #5 on: March 19, 2007, 08:23:12 am »
Quote
Full (SD Booting, CF Extension Cards) OpenBSD support for C1000 will be great! Then my whole computers runs on Openbsd  

What were the steps to do this?
Booting Openbsd from CF Card and try to take the installdrive sd0 (SD Card)? Or is it much complex?

greets
Andi

I think all you'll need to do is create an image of your current Z's partitions onto a SD card. (You'll also have to edit /etc/fstab) Then recompile and install a kernel with the following changes:
config          bsd     root on wd0a  to --> config          bsd     root on sd0a
Make sure and install the new kernel to the root partition of your current CF install and SD image. Don't delete the old kernel because if this doesn't work then you'll need it to reboot your system. So before installing the new kernel cp /bsd /bsd.bak and then after installing the new kernel rename the sd-root kernel as sdbsd, ie mv /bsd /sdbsd. Boot this kernel instead of the normal bsd kernel, ie at the boot prompt type:
 
boot> boot wd0a:/sdbsd

Note I have not tried this yet; hence, if you ruin your install don't blame me.   However, I'm pretty sure this will work.
« Last Edit: March 24, 2007, 06:38:28 pm by mathemajikian »

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Sd Support!
« Reply #6 on: March 19, 2007, 08:28:32 am »
Great news!

So, apart from pxa270 SRAM support (video accel) which I would presume isn't done yet, is their anything else missing from the Zaurus OpenBSD kernel that a sharp rom/pdax user may expect to work? I'm not bothered about bluetooth personally.

Does it have working support for USB host on the cxxxx?
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Sd Support!
« Reply #7 on: March 19, 2007, 08:42:38 am »
Quote
Does it have working support for USB host on the cxxxx?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Enable usbf(4) and cdcef(4) on Zaurus: [a href=\"http://www.openbsd.org/plus41.html]http://www.openbsd.org/plus41.html[/url]

Quote
USBF(4)                   OpenBSD Programmer's Manual                  USBF(4)

NAME
     usbf - introduction to Universal Serial Bus function support

SYNOPSIS
     usbf* at pxaudc?    # zaurus
     cdcef* at usbf?

DESCRIPTION
     OpenBSD provides machine-independent bus support and drivers for Univer-
     sal Serial Bus (USB) functions, making it possible in principle for ma-
     chines running OpenBSD to act as USB device to a USB host.

     The OpenBSD usbf driver has three layers: the controller, the logical de-
     vice, and the function layer.  The controller attaches to a physical bus.
     The logical device attaches to the controller and the function attaches
     to the logical device.

     Function drivers implement the characteristics of a particular USB device
     class that the USB host will see when the device is connected to the bus.

Bluetooth devices work, but we are still lacking a communication protocol. It's in the works. NAND flash memory should be coming soon as can be seen from:
flash0 at pxaip0: Samsung K9F1G08U0A 128Mx8 3.3V
« Last Edit: March 19, 2007, 08:43:57 am by mathemajikian »

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Sd Support!
« Reply #8 on: March 19, 2007, 03:20:37 pm »
and about SDIO,
does it open us a way to true SDIO controllers like SDIO GPS or SDIO WLAN cards ???
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

DaemonsGR

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Sd Support!
« Reply #9 on: March 20, 2007, 08:01:14 am »
Great!!! Have you test any 4g SD?!?

Thnx
Tasos Varoudis (Tech)
Tasos Varoudis (Architecture)

Zaurus sl-c3100 + Wlan, Lan ,BT ,etc
NOW running... pdaXrom 1.1.0beta3 + OOo + custom apps/setup + debian +.. not yet installed OpenBSD snapshot

WAS:Cacko 1.23 + X/QT + debian

Home-Net
Debian WIFI Router ,OpenBSD Bridge Firewall ,Win 2k Domain Server , :) Sun Fire v120 , :) Gentoo Main Server: Dual PIII

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Sd Support!
« Reply #10 on: March 20, 2007, 09:00:40 am »
Quote
Great!!! Have you test any 4g SD?!?

Thnx
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156797\"][{POST_SNAPBACK}][/a][/div]

I only have a 2GB card to test, but I don't see any reason why you couldn't use a 4GB SD card. (This isn't a Linux ROM   )
« Last Edit: March 20, 2007, 09:09:57 am by mathemajikian »

cal

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Sd Support!
« Reply #11 on: March 20, 2007, 09:24:05 am »
i just gave 4.1 a whirl on my C1000, and install fails.  The SD card isn't found and dmesg doesn't show
Code: [Select]
pxammc0 at pxaip0: MMC/SD/SDIO controller.  I have been running obsd on a CF card, and I was looking forward to getting rid of my usb ethernet adapter and switching to a CF wifi card...

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Sd Support!
« Reply #12 on: March 20, 2007, 09:28:43 am »
Quote
Quote
Great!!! Have you test any 4g SD?!?

Thnx
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156797\"][{POST_SNAPBACK}][/a][/div]

I only have a 2GB card to test, but I don't see any reason why you couldn't use a 4GB SD card. (This isn't a Linux ROM   )
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156799\"][{POST_SNAPBACK}][/a][/div]

I just spoke to Uwe concerning this and here's what he had to say:

Quote
I have used a 4GB card in my laptop with sdhc(4), but not yet on the Zaurus.
The controller should not make a difference though.

The main difference, afaik, between small and large SD memory cards is that
they encode the block size in the card information structure differently.
Hence, there shouldn't be any issues in utilizing larger capacity SD cards.

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Sd Support!
« Reply #13 on: March 20, 2007, 09:51:31 am »
Quote
i just gave 4.1 a whirl on my C1000, and install fails.  The SD card isn't found and dmesg doesn't show
Code: [Select]
pxammc0 at pxaip0: MMC/SD/SDIO controller.  I have been running obsd on a CF card, and I was looking forward to getting rid of my usb ethernet adapter and switching to a CF wifi card...
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

How did you install? If you just went and downloaded 4.1-release sources then this is understandable. The SD driver support was only added two days ago. To gain SD support your going to have to update your 4.1-release system via cvs to 4.1-current. Follow the cvs update instructions found on this page to update your Z to 4.1-current: [a href=\"http://exit3.i-55.com/%7Exikon/ZaurusUpgrade.html]Zaurus updating[/url]  

Furthermore, trying to run/install OpenBSD off/on an SD card will require a little ingenuity. (See my earlier post) This is mainly due to the limits of the current bootloader. Quoting Uwe once again
Quote
The current standalone boot program doesn't know about "sd" or "wd" disks.  All it has is "hd" devices, which map (in a non-intuitive way) to the linux devices /dev/hda, /dev/hdc, etc.
I'm going to try and get BSD running off an SD card later this week. I'll post my results.
« Last Edit: March 20, 2007, 10:41:10 am by mathemajikian »

cal

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Sd Support!
« Reply #14 on: March 20, 2007, 10:01:42 am »
Thanks I was taking it one step at a time.  I just wanted to see the dmesg for the first time.  I might try the CVS version later, thanks for pointing that out.