Debian Userland on top of existing Linux build?
#1
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?
  Reply
#2
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
  Reply
#3
(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?
  Reply
#4
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):
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) Quartz64 riscv64, aarch64 mara 4 1,093 Yesterday, 10:45 AM
Last Post: mara
  SOQuartz Linux Builds stormwyrm 1 926 11-13-2023, 02:53 AM
Last Post: diederik
  Plebian Linux CounterPillow 8 4,705 07-19-2023, 08:51 AM
Last Post: CounterPillow
  SOQuartz Getting a working build dl-m10 7 4,962 01-23-2023, 06:38 PM
Last Post: diederik
  BUILD CUSTOM SDK shaggy013 27 30,834 12-05-2022, 01:05 PM
Last Post: shaggy013
  Installing linux images emveepee 8 6,467 07-07-2022, 08:19 AM
Last Post: emveepee
  Mainline linux Mwo87 4 4,016 07-06-2022, 05:38 AM
Last Post: CounterPillow
  Install Debian from pgwipeout quartz64_ci dieselnutjob 0 1,607 02-08-2022, 01:40 PM
Last Post: dieselnutjob
  how to compile Linux from the SDK ? dieselnutjob 7 7,668 11-19-2021, 03:34 PM
Last Post: CounterPillow
  Boot Linux on microSD card? dieselnutjob 2 3,960 10-01-2021, 05:15 PM
Last Post: dieselnutjob

Forum Jump:


Users browsing this thread: 1 Guest(s)