Article 6FJTG How to boot have a triple Boot for notebook Pinebook Pro (Base Manjaro, NetBSD, and Rescue Desktop on USB Pendrive) ?

How to boot have a triple Boot for notebook Pinebook Pro (Base Manjaro, NetBSD, and Rescue Desktop on USB Pendrive) ?

by
openbsd98324
from LinuxQuestions.org on (#6FJTG)
Hello,

How to boot have a triple Boot for notebook Pinebook Pro (Base Manjaro, NetBSD, and Rescue Desktop on USB Pendrive) ?

It describes what to do how to get it.

1.) In first instance, we can try to describe how the PBPRO boots.

It will look up first at SDMMC and eMMC. U-boot would detect emmc as sd:0 and sdmmc as sd:1. It can be edited and saved into u-boot.
However, the priority is by default to look up at the SDMMC or EMMC, if you have no USB pendrive.

In case you have a u-boot on emmc, it can be slightly different.

We want to have:
NetBSD, Manjaro Custom Base (desktop) and Manjaro running on USB pendrive.

NetBSD is very useful, powerful and very reliable.
It is convenient to have NetBSD for higher flexibility. I use NetBSD for various things, like a file server. NetBSD is really great. Anyhow.
NetBSD has a Desktop, default with CTWM.

ldX will be the SD on netbsd.
/dev/mmcblk1 is the sdmmc running linux
/dev/mmcblk2 is the emmc (very fast !!!)

Read/write:
slower is usb
faster is sdmmc
and very fast is emmc

2.) Download and run NetBSD

== ==
NETBSD on SDMMC pbpro
== ==
eebee92a9341a99c421090f4471a4ba7 NetBSD-9-aarch64--pinebook-pro.img.gz
== ==
https://forum.pine64.org/showthread....197&pid=112352
We all suppose use use now linux to create the SDMMC with NetBSD.

Code:zcat NetBSD-9-aarch64--pinebook-pro.img.gz > /dev/mmcblk1Now you can boot to test, run and use NetBSD out of SDMMC !
Great! The desktop works.
urtwn0 will be your USB dongle for wifi.

3.) Copy the Manjaro KDE onto a USB pendrive

Power On (make sure to have a SDMMC with Netbsd for instance).
Take care to not have dupplicate UUID.
So we keep NetBSD on SDMMC, it is rock solid.

You can download and copy on USB
https://github.com/manjaro-arm/pbpro...o-22.06.img.xz

Place your USB stick on right or left USB slot.
Left is the first taken into consideration during boot.

4.) Create your custom Linux on your emmc ...

Install arch-install-scripts

Format the emmc and create needed partitions.
pacstrap -i . base dhcpcd wpa_supplicant

edit /boot onto /dev/sda1 to have /dev/mmcblk2p2 (I use this for the rootfs of manjaro base).
Extlinux configuration will allow to set where is your rootfs.

boot and you may need the wifi...

On your new base manjaro system:
mount /dev/sda2 /mnt/
cp -a /mnt/lib/modules /lib/modules
cp -a /mnt/lib/firmware /lib/firmware

( / is your base manjaro system ).

After, pacstrap ... for instance lxde, xfce4...

You can either place U-Boot onto /dev/mmcblk2 or onto your USB pendrive.

5.) Alternatively you want to have a superbe boot to select.

Tow
https://www.youtube.com/watch?v=wCVcjwpDCYo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments