Plop Forum

General Category => Boot Managers => Topic started by: mbzadegan on August 06, 2016, 11:47:55 AM

Title: Can PLOP boot the internal SD card?
Post by: mbzadegan on August 06, 2016, 11:47:55 AM
Hi,
I have a SD card that contain my custom Linux that could be booted from the USBCardReader right and without any issue BUT I want to boot my SD card from the laptop internal SD card reader and when I inserted it my BIOS did not detected it as bootable device. However I have installed GRUB2 in my HDD and when I started by GRUB2 I run GRUB2 command prompt by clicking [c] then I run [ls] command and I did not see any hd1 or mmcxxxxx device.

How can I boot from my laptop internal SD card reader? Is that PLOP boot manager can useful for me?

Regards.
Title: Re: Can PLOP boot the internal SD card?
Post by: Elmar on August 06, 2016, 14:21:43 PM
Hello,

use plopkexec. The last test version can be seen as stable. Start plopkexec from grub.

Regards
Elmar
Title: Re: Can PLOP boot the internal SD card?
Post by: mbzadegan on August 06, 2016, 15:25:07 PM
Quote from: Elmar on August 06, 2016, 14:21:43 PM
Hello,

use plopkexec. The last test version can be seen as stable. Start plopkexec from grub.

Regards
Elmar

Thanks for your reply,
I loaded plopkexec by grub2 but still it could not find my SD card OS when it plugged in the Laptop internal SD reader but when I plugged it with usb-reader, it could find and boot it true!
How can I boot from the internal SD card reader without any usb-reader?
Regards.
Title: Re: Can PLOP boot the internal SD card?
Post by: Elmar on August 06, 2016, 16:06:54 PM
Try this new build https://download.plop.at/plopkexec/tmp/plopkexec
Title: Re: Can PLOP boot the internal SD card?
Post by: mbzadegan on August 06, 2016, 16:21:29 PM
Such as before, it still waiting on this below message state:

Waiting for a drive with Linux...

        No Linux has been found.

Title: Re: Can PLOP boot the internal SD card?
Post by: Elmar on August 06, 2016, 16:23:19 PM
Does the internal card reader work when a linux has been booted?
Title: Re: Can PLOP boot the internal SD card?
Post by: mbzadegan on August 06, 2016, 16:29:49 PM
Yes, It can detected without issue.
Title: Re: Can PLOP boot the internal SD card?
Post by: Elmar on August 06, 2016, 16:30:46 PM
What device node has it?
Title: Re: Can PLOP boot the internal SD card?
Post by: mbzadegan on August 06, 2016, 16:37:17 PM
It's my dmesg about inserting mmc SD card into internal SD card reader:

[  111.411537] mmc0: new high speed SD card at address 0002
[  111.413242] mmcblk0: mmc0:0002 00000 1.86 GiB
[  111.416096]  mmcblk0: p1 p2 p3
[  111.923021] ISO 9660 Extensions: Microsoft Joliet Level 3
[  111.927045] ISO 9660 Extensions: RRIP_1991A
[  111.927070] SELinux: initialized (dev mmcblk0p1, type iso9660), uses genfs_contexts

Title: Re: Can PLOP boot the internal SD card?
Post by: Elmar on August 06, 2016, 16:41:04 PM
do you see something similar in the dmesg of plopkexec?
Title: Re: Can PLOP boot the internal SD card?
Post by: mbzadegan on August 06, 2016, 16:48:22 PM
YES,

mmc0: SDHCI controller on PCI   [0000:04:00.1] using DMA
mmc0: new high speed SD card at address 0002
mmcblk0: mmc:0002 00000 1.87 GiB
mmcblk0: p1 p2 p3
/ #
Title: Re: Can PLOP boot the internal SD card?
Post by: Elmar on August 06, 2016, 17:23:33 PM
Does plopkexec detect the linux on the sd card when it is in the usb card reader?
You see on the top of plopkexec 1.4-test3, or?
Title: Re: Can PLOP boot the internal SD card?
Post by: mbzadegan on August 06, 2016, 21:18:42 PM
As I said on Reply#2 it can detected when plugged with usb card reader without any error.
But I want to detect SD without USB card reader.
Title: Re: Can PLOP boot the internal SD card?
Post by: Elmar on August 07, 2016, 08:20:44 AM
I think I understand whats going wrong.

Try this https://download.plop.at/plopkexec/tmp/plopkexec2
Check that the date in the title is 2016/08/07


EDIT: File removed. Implemented in the latest release.
Title: Re: Can PLOP boot the internal SD card?
Post by: mbzadegan on August 07, 2016, 08:53:44 AM
Bravo 8) 8)
The new one plopkexec2 detected my internal SD!
Thanks So much.
Title: Re: Can PLOP boot the internal SD card?
Post by: mbzadegan on August 10, 2016, 07:39:48 AM
Hi,
Is that possible to extend plopkexec to boot other OS (Such as FreeBSD) from SD-Card?
Regards.
Title: Re: Can PLOP boot the internal SD card?
Post by: Elmar on August 10, 2016, 07:49:51 AM
Hello,

its not possible.

PlopKexec uses kexec to start the kernel. This works only with Linux.

Regards
Elmar
Title: Re: Can PLOP boot the internal SD card?
Post by: Jhoefs on August 30, 2016, 19:42:51 PM
Hello. This is exactly what I am trying to do.

I have an old pc running windows 7 and recently decided to try working with Linux mint instead of being strong armed into windows 10, reinstalling everything on my computer, etc.

A friend suggested doing the permanent install on the SD card (internal), which makes sense for several reasons, I will have an independent OS and simply access old documents and files from the HD windows has previously run from.

HP laptop. Doesn't boot from SD drive. Sounds like the solution is to install grub2, and then get the updated kexec2 file you shared... Only the link was dead. Had almost given up on this option of using the SD card when I found this thread, so would be stoked if something can work, otherwise will do a persistent USB install and settle for that

Thank you!

Jonathan

Will it be possible for a newbie to pull this off? Will windows still be able to load if I instll grub?
Title: Re: Can PLOP boot the internal SD card?
Post by: Elmar on September 03, 2016, 15:29:58 PM
Quote from: Jhoefs on August 30, 2016, 19:42:51 PM
....Only the link was dead...

Its dead, because its implemented in the latest release.

Quote from: Jhoefs on August 30, 2016, 19:42:51 PM
... Will windows still be able to load if I instll grub?

When you do it correct, then yes. Just search the web for "grub boot windows" and you will find a lot of tutorials. But there is a difference between Grub (legacy) and Grub2. Search for the one you need.

Regards
Elmar
Title: Re: Can PLOP boot the internal SD card?
Post by: Jhoefs on September 07, 2016, 01:50:41 AM
Thank you so much for the reply.

I ran the build script (in root) and it didn't work. I tried a couple times, and then I took the pre-built plopkexec kernel and went ahead and put it in the /root/ directory, to try that.

I ran the grub2 updater but it didn't recognize the kernel and add it to the menu. Can you help?

Thank you so much for creating this software btw!
Title: Re: Can PLOP boot the internal SD card?
Post by: Elmar on September 07, 2016, 07:06:31 AM
Quote from: Jhoefs on September 07, 2016, 01:50:41 AM
I ran the build script (in root) and it didn't work. I tried a couple times, and then I took the pre-built plopkexec kernel and went ahead and put it in the /root/ directory, to try that.

I ran the grub2 updater but it didn't recognize the kernel and add it to the menu. Can you help?

I don't understand exactly what you are doing. Please start a new topic for your specific problem.

Best regards
Elmar