Author Topic: Is LiveMMC or Live SD possible?  (Read 2575 times)

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Is LiveMMC or Live SD possible?
« Reply #15 on: January 28, 2012, 07:01:01 AM »
Hmm before I do anything, please confirm that what I am doing is correct:

Code: [Select]
#dd if=/dev/zero of=/dev/mmcblk0p1
TIA


I think you should zero-out also the partition table, than use the device istead of the partition, also bs=1M is suggested for improved speed:
Code: [Select]
#dd if=/dev/zero of=/dev/mmcblk0 bs=1M

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10613
  • MLUs Forever!
Re: Is LiveMMC or Live SD possible?
« Reply #16 on: January 28, 2012, 07:08:29 AM »
As above ......  zero out the first sector .....  and the 1M will do that ....  so use the device name as AS pointed out.
Your device name from a previous post is  /dev/mmcblk0
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Is LiveMMC or Live SD possible?
« Reply #17 on: January 28, 2012, 07:26:43 AM »
OK. Done following AS' instructions.

Code: [Select]
# dd if=/dev/zero of=/dev/mmcblk0 bs=1M
dd: writing `/dev/mmcblk0': No space left on device
15097+0 records in
15096+0 records out
15829303296 bytes (16 GB) copied, 76.4745 s, 207 MB/s

Ejected and reinserted the MicroSD.

Code: [Select]
# fdisk /dev/mmcblk
n > 2048 > 2050 // very small partition
n > 2051 > Enter
t > 1 > c
p
Disk /dev/mmcblk0: 15.8 GB, 15829303296 bytes
4 heads, 16 sectors/track, 483072 cylinders, total 30916608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7a71191c

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            2048        2050           1+   c  W95 FAT32 (LBA)
/dev/mmcblk0p2            2051    30916607    15457278+  83  Linux

w
The partition table has been altered!

Calling ioctl() to re-read partition table.

[b]WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.[/b]                                                                              // What's this?
Syncing disks.
# exit

So that seemed OK. I ejected the MicroSD ...

Code: [Select]
$ lusbc
...

Reinserted the MicroSD then clicked Yes.

Found 2 partitions ... I selected /dev/mmcblk0p2 and clicked OK.

It is asking me to select again between the 2 partitions. ;(

... and I'm stuck.


EDIT:

As above ......  zero out the first sector .....  and the 1M will do that ....  so use the device name as AS pointed out.
Your device name from a previous post is  /dev/mmcblk0

Yes, it musta changed when I reinserted at some time. It is /dev/mmcblk0.
« Last Edit: January 28, 2012, 07:28:16 AM by Archie »
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline coco

  • Sr. Member
  • ****
  • Posts: 379
  • El dinero no lo es todo .. dicen los que lo tienen
Re: Is LiveMMC or Live SD possible?
« Reply #18 on: January 28, 2012, 08:06:04 AM »
You can install PCLOS on an SD card (in a USB port) as if on a hard drive and boot from the SD card. You can also install PCLOS on a SD card as a liveSD, for example, with software unetbooting. With liveSD can not save changes to the PCLOS.

If you have a fast SD card, the result is pretty good.
pclinuxos64-test04.iso :(       Chakra64 2012.2 :)

"Comprométete con algo difícil; esto te hará bien. Si no tratas de hacer algo más allá de lo que ya dominas, jamás progresarás." Ronal E. Osborn
"Si algo vale la pena hacerlo, vale la pena hacerlo incluso si no se sabe hacer bien." G. K. Chester

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Is LiveMMC or Live SD possible?
« Reply #19 on: January 28, 2012, 08:14:35 AM »
You can install PCLOS on an SD card (in a USB port) as if on a hard drive and boot from the SD card. You can also install PCLOS on a SD card as a liveSD, for example, with software unetbooting. With liveSD can not save changes to the PCLOS.

If you have a fast SD card, the result is pretty good.

Well that's an idea. I'll dig around my basket for that small USB adaptor, and see what comes out of it.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10613
  • MLUs Forever!
Re: Is LiveMMC or Live SD possible?
« Reply #20 on: January 28, 2012, 08:46:40 AM »
Did you deliberately format the Linux partition ....  and to what?

I saw no mention of formatting .....  hence the question ....
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Is LiveMMC or Live SD possible?
« Reply #21 on: January 28, 2012, 08:49:09 AM »
Quote
Disk /dev/mmcblk0: 15.8 GB, 15829303296 bytes
4 heads, 16 sectors/track, 483072 cylinders, total 30916608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7a71191c

... a zeroed block should lead to 0x00000000 ....  ???

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Is LiveMMC or Live SD possible?
« Reply #22 on: January 28, 2012, 08:58:44 AM »
I took coco's suggestion and was able to format the MicroSD via the adaptor on PCC. Copied a remaster from last year using LUSBC ... and am now just waiting for a build to finish so I can reboot and test whether I can boot from the card reader or if I would still need to use the adapter.

I'm not sure why zero-out did those and I can't remember if I formatted the card after zero-out... too many things! Sorry, guys.

I'll post the results after a reboot.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Is LiveMMC or Live SD possible?
« Reply #23 on: January 28, 2012, 09:07:19 AM »
I took coco's suggestion and was able to format the MicroSD via the adaptor on PCC. Copied a remaster from last year using LUSBC ...

If successful, that should confirm an issue with mmc support from kernel ...

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Is LiveMMC or Live SD possible? DONE!
« Reply #24 on: January 28, 2012, 10:04:09 AM »
Well, my BIOS did not support booting from the card reader but I was able to boot using the USB adapter and the boot speed and reaction time was also fast and acceptable.

I took coco's suggestion and was able to format the MicroSD via the adaptor on PCC. Copied a remaster from last year using LUSBC ...

If successful, that should confirm an issue with mmc support from kernel ...

Yeap.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10613
  • MLUs Forever!
Re: Is LiveMMC or Live SD possible? DONE!
« Reply #25 on: January 28, 2012, 10:12:41 AM »
Well, my BIOS did not support booting from the card reader but I was able to boot using the USB adapter and the boot speed and reaction time was also fast and acceptable.


Is your card reader not attached to a USB port in the PC?

If not, how is it attached?

Thanks.

BTW ......  congrats on getting it working  :D
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline coco

  • Sr. Member
  • ****
  • Posts: 379
  • El dinero no lo es todo .. dicen los que lo tienen
Re: Is LiveMMC or Live SD possible?
« Reply #26 on: January 28, 2012, 10:31:01 AM »
I took coco's suggestion and was able to format the MicroSD via the adaptor on PCC. Copied a remaster from last year using LUSBC ... and am now just waiting for a build to finish so I can reboot and test whether I can boot from the card reader or if I would still need to use the adapter.

I'm not sure why zero-out did those and I can't remember if I formatted the card after zero-out... too many things! Sorry, guys.

I'll post the results after a reboot.

Archie I have used this form of testing PCLOS since summer 2010, I take the livecd and install PCLOS on usb memory like a hard drive, putting in the usb ext4 partition, swap and the MBR, then select the bios to boot from the USB (with adapter if is an SD card).

If the iso is 32bit use Virtual Box to boot the livecd and install, if the iso is 64bits use Unetbooting o
LinuxLive USB Creator to create a liveusb and then boot from the liveusb (with other usb memory where the system was installed) and install 64bit version in the other usb memory.

Normally no BIOS supports booting from the card reader.

Sorry for my bad english.
« Last Edit: January 28, 2012, 10:49:08 AM by coco »
pclinuxos64-test04.iso :(       Chakra64 2012.2 :)

"Comprométete con algo difícil; esto te hará bien. Si no tratas de hacer algo más allá de lo que ya dominas, jamás progresarás." Ronal E. Osborn
"Si algo vale la pena hacerlo, vale la pena hacerlo incluso si no se sabe hacer bien." G. K. Chester

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10613
  • MLUs Forever!
Re: Is LiveMMC or Live SD possible?
« Reply #27 on: January 28, 2012, 11:14:14 AM »
Some relevant info  ....

Quote
Personal computers
Although many personal computers accommodate SD cards as an auxiliary storage device through a built-in slot or a USB adaptor, SD cards cannot be used as the primary hard disk through the onboard ATA controller because none of the SD card variants supports ATA signalling. This use requires a separate SD controller chip[46] or a SD-to-CompactFlash converter. However, on computers that support bootstrapping from a USB interface, an SD card in a USB adaptor can be the primary hard disk, provided it contains an operating system that supports USB access once the bootstrap is complete.


This is why it only works from USB hub.



http://en.wikipedia.org/wiki/Secure_Digital
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Is LiveMMC or Live SD possible?
« Reply #28 on: January 28, 2012, 11:35:22 AM »
Some relevant info  ....

Quote
Personal computers
Although many personal computers accommodate SD cards as an auxiliary storage device through a built-in slot or a USB adaptor, SD cards cannot be used as the primary hard disk through the onboard ATA controller because none of the SD card variants supports ATA signalling. This use requires a separate SD controller chip[46] or a SD-to-CompactFlash converter. However, on computers that support bootstrapping from a USB interface, an SD card in a USB adaptor can be the primary hard disk, provided it contains an operating system that supports USB access once the bootstrap is complete.


This is why it only works from USB hub.

http://en.wikipedia.org/wiki/Secure_Digital


I can confirm about, my  laptop is using a PCI adapter, that cannot be used as boot device:
Quote
08:05.2 SD Host controller: O2 Micro, Inc. Integrated MMC/SD Controller (rev 02)
08:05.3 Mass storage controller: O2 Micro, Inc. Integrated MS/xD Controller (rev 01)


instead my EEE-BOX which also feature a card reader is using a USB based adapter (although internal) which can be used as boot device.

AS

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Is LiveMMC or Live SD possible? DONE!
« Reply #29 on: January 28, 2012, 08:46:27 PM »
Well, my BIOS did not support booting from the card reader but I was able to boot using the USB adapter and the boot speed and reaction time was also fast and acceptable.


Is your card reader not attached to a USB port in the PC?

If not, how is it attached?

Thanks.

BTW ......  congrats on getting it working  :D
On a Sony VAIO laptop.

Code: [Select]
lspci -v | grep 'Card Reader'
09:03.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)

Thank you, coco for the idea.

AS and Just18, thanks for the assistance and the info. I definitely learned something useful on this exercise.

Peace and much respect,
Archie
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42