PINE64
Debian Userland on top of existing Linux build? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Quartz64 (https://forum.pine64.org/forumdisplay.php?fid=166)
+--- Forum: Linux on Quartz64 (https://forum.pine64.org/forumdisplay.php?fid=168)
+--- Thread: Debian Userland on top of existing Linux build? (/showthread.php?tid=15845)



Debian Userland on top of existing Linux build? - dieselnutjob - 01-25-2022

On the wiki ( https://wiki.pine64.org/wiki/Quartz64 ) it mentions installing Debian testing userland.

Is it possible to do this without touching an existing 4.19 based boot partition (so keep the existing working kernel and dtb file)?

How do I actually do it?


RE: Debian Userland on top of existing Linux build? - dieselnutjob - 01-25-2022

I am looking at this https://wiki.debian.org/Arm64Port

downloading arm64 debootstrap onto a debian box, unpacking and sending the files over to the quartz64 and running it there seems to be working.
Lets see if it completes....
Code:
root@quartz64:# debootstrap --arch=arm64 testing /root/debian-bookworm http://deb.debian.org/debian/
W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
I: Retrieving InRelease
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://deb.debian.org/debian...
I: Retrieving libacl1 2.3.1-1
I: Validating libacl1 2.3.1-1
I: Retrieving adduser 3.118
I: Validating adduser 3.118
I: Retrieving libapparmor1 3.0.3-6
I: Validating libapparmor1 3.0.3-6
I: Retrieving apt 2.3.14
I: Validating apt 2.3.14
I: Retrieving apt-utils 2.3.14
W: Couldn't download package apt-utils (ver 2.3.14 arch arm64) at http://deb.debian.org/debian/pool/main/a/apt/apt-utils_2.3.14_arm64.deb
I: Retrieving libapt-pkg6.0 2.3.14
I: Validating libapt-pkg6.0 2.3.14
I: Retrieving libargon2-1 0~20171227-0.2
W: Couldn't download package libargon2-1 (ver 0~20171227-0.2 arch arm64) at http://deb.debian.org/debian/pool/main/a/argon2/libargon2-1_0~20171227-0.2_arm64.deb
I: Retrieving libattr1 1:2.5.1-1
I: Validating libattr1 1:2.5.1-1
I: Retrieving libaudit-common 1:3.0.6-1



RE: Debian Userland on top of existing Linux build? - dieselnutjob - 01-25-2022

(01-25-2022, 05:59 AM)dieselnutjob Wrote: I am looking at this https://wiki.debian.org/Arm64Port

downloading arm64 debootstrap onto a debian box, unpacking and sending the files over to the quartz64 and running it there seems to be working.
Lets see if it completes....
Code:
root@quartz64:# debootstrap --arch=arm64 testing /root/debian-bookworm http://deb.debian.org/debian/
W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
I: Retrieving InRelease
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://deb.debian.org/debian...
I: Retrieving libacl1 2.3.1-1
I: Validating libacl1 2.3.1-1
I: Retrieving adduser 3.118
I: Validating adduser 3.118
I: Retrieving libapparmor1 3.0.3-6
I: Validating libapparmor1 3.0.3-6
I: Retrieving apt 2.3.14
I: Validating apt 2.3.14
I: Retrieving apt-utils 2.3.14
W: Couldn't download package apt-utils (ver 2.3.14 arch arm64) at http://deb.debian.org/debian/pool/main/a/apt/apt-utils_2.3.14_arm64.deb
I: Retrieving libapt-pkg6.0 2.3.14
I: Validating libapt-pkg6.0 2.3.14
I: Retrieving libargon2-1 0~20171227-0.2
W: Couldn't download package libargon2-1 (ver 0~20171227-0.2 arch arm64) at http://deb.debian.org/debian/pool/main/a/argon2/libargon2-1_0~20171227-0.2_arm64.deb
I: Retrieving libattr1 1:2.5.1-1
I: Validating libattr1 1:2.5.1-1
I: Retrieving libaudit-common 1:3.0.6-1

I can't get it to work.
After all the downloads it fails to actually extract anything:-
Code:
I: Validating util-linux 2.36.1-8
I: Validating libxxhash0 0.8.0-2
I: Validating liblzma5 5.2.5-2
I: Validating xz-utils 5.2.5-2
I: Validating zlib1g 1:1.2.11.dfsg-2
I: Chosen extractor for .deb packages: ar
I: Extracting libacl1...
does the partition have to be empty or something?


RE: Debian Userland on top of existing Linux build? - dieselnutjob - 01-25-2022

OK. with the partition emptied debootstrap unpacks all of the packages.
The problem now is that the kernel boots up but then panics

I have no /sbin/init
that can't help

I booted from sdcard, chrooted to the mmc partition 3 and did apt-get install systemd-sysv
a couple of reboots later I'm here
Code:
Welcome to Debian GNU/Linux bookworm/sid!

[  OK  ] Created slice Slice /system/getty.
[  OK  ] Created slice Slice /system/modprobe.
[  OK  ] Created slice Slice /system/serial-getty.
[  OK  ] Created slice Slice /system/systemd-fsck.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Reached target Local Integrity Protected Volumes.
[  OK  ] Reached target Path Units.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Reached target Slice Units.
[  OK  ] Reached target Local Verity Protected Volumes.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket.
         Mounting Kernel Debug File System...
         Mounting Kernel Trace File System...
         Starting Load Kernel Module configfs...
         Starting Load Kernel Module drm...
         Starting Load Kernel Module fuse...
         Starting File System Check on Root Device...
         Starting Journal Service...
         Starting Load Kernel Modules...
[  OK  ] Finished Load Kernel Module configfs.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Trace File System.
[  OK  ] Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module fuse.
         Mounting FUSE Control File System...
         Mounting Kernel Configuration File System...
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Finished Load Kernel Modules.
         Starting Apply Kernel Variables...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Started Journal Service.2.1% complete)
[  OK  ] Finished File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Finished Remount Root and Kernel File Systems.
         Activating swap /swap...
         Starting Flush Journal to Persistent Storage...
         Starting Load/Save Random Seed...
         Starting Create System Users...
[FAILED] Failed to activate swap /swap.
See 'systemctl status swap.swap' for details.
[DEPEND] Dependency failed for Swaps.
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Finished Create System Users.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Flush Journal to Persistent Storage.
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Preparation for Local File Systems.
[ TIME ] Timed out waiting for device /dev/mmcblk2p2.
[DEPEND] Dependency failed for File…ystem Check on /dev/mmcblk2p2.
[DEPEND] Dependency failed for /boot.
[DEPEND] Dependency failed for Local File Systems.
[  OK  ] Stopped Dispatch Password …ts to Console Directory Watch.
[  OK  ] Stopped Forward Password R…uests to Wall Directory Watch.
[  OK  ] Reached target Timer Units.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Socket Units.
[  OK  ] Started Emergency Shell.
[  OK  ] Reached target Emergency Mode.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
         Starting Record Runlevel Change in UTMP...
[  OK  ] Finished Record Runlevel Change in UTMP.
[   92.999508] proc: unrecognized mount option "hidepid=invisible" or missing value
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Set.
You are in emergency mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or "exit"
to boot into default mode.
Give root password for maintenance
(or press Control-D to continue):