| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 29,952
» Latest member: Aruz508
» Forum threads: 16,335
» Forum posts: 117,437
Full Statistics
|
|
|
| Bringing up a fresh Debian install (or trying) |
|
Posted by: foresto - 08-05-2020, 03:51 PM - Forum: Linux on RockPro64
- Replies (2)
|
 |
The challenge before me is to bring up a mainline Debian install on the RockPro64. It will be a headless server with at least one SATA disk. I know there will be snags, but I'm hoping to work through them and maybe turn to you folks for help. I'll document what I discover along the way so others can use this as a guide.
Problem 1: (deferred) NAS case defects.
The first unit I received was warped or otherwise misshapen. (Maybe damaged in shipping?) The board's screw holes did not quite align with the case's standoffs, and the ports did not quite align with the case holes, so I could not mount the board.
The second unit I received has other problems, but at least the mounting holes are properly aligned, so I can move forward with the project. I will revisit the remaining case defects later.
Problem 2: (solved) Debian installer image.
The netboot installer daily build has been failing for the past week, so the link to the latest installer is (at the time of this writing) broken.
I browsed for earlier builds and used the last one that succeeded. Following the readme in that directory, I decompressed and concatenated the rockpro64 part with the generic part to form a complete SD card image, and wrote it to a microsd card using dd. This allowed me to proceed, but only briefly, as a related problem came up later. (See problem 4.)
Solution: It turns out the installer daily builds stop working whenever the Debian archive's kernel is upgraded, because the kernel module ABI no longer matches the version used by the installer. Submit a report to the debian-installer maintainers and/or contact them on irc to see if someone has time to update the installer, and then wait for a new daily build.
Problem 3: (workaround exists) Serial console.
Connecting my USB-to-TTL UART/serial adapter to pins 6, 8, and 10 of the rockpro64 (described here) established communication, but the serial line settings were wrong. At 115200 bps, booting yielded a little garbage, then several lines of readable text, then a lot more garbage. At 1500000 bps, only garbage was received for the entire boot sequence.
I found this report that the boot firmware runs the console at 115200 while the Debian installer runs at 1500000, which was helpful information, but it didn't explain why 1500000 bps didn't work at all.
It turns out the 1.5 Mbps speed is too fast for the CP2102 chip that is used on many USB-to-serial adapters, including mine. (My adapter was advertised as supporting that speed, but I suppose that was false advertising.)
Workaround: Reconfigure the installer. I mounted the SD card on my computer, opened the extlinux/extlinux.conf file in a text editor, and added this text on its own line at the end of the default boot stanza (the section that starts with "label l0"):
Code: append console=ttyS2,115200n8
I was then able to open my serial port at 115200 bps, power up the rockpro64, see the text from the entire boot sequence (except for a little garbage before and after the initial bootloader messages), and operate the Debian installer.
I will order a new adapter, and I expect it will clear up most of the serial port garbage, but this won't change the fact that the 1500000 bps setting used by the bootloader and installer is too fast for about half the adapters on the market, meaning that the debian installer image will by default not work for many people. Either the speed should be reduced to 115200, or the instructions should be amended to explain the problem and the workaround. I may end up submitting a bug report to Debian about this.
Problem 4: (solved) No kernel modules found.
After configuring the language and network settings, and selecting a Debian mirror, the installer failed with a "No kernel modules found" message. The same error appeared with every mirror I chose. It also appeared with every available installer image.
Just like the daily build problem that I mentioned earlier, this happens whenever the Debian archive's kernel is upgraded, because the module ABI no longer matches the version used by the installer. When it happens, all of the installer daily builds are broken, so it is pointless to try the others.
Solution: Report the problem and wait for the maintainers to update the installer to use the new kernel.
Problem 5: (workaround exists) The installer does not install a bootloader.
The installer finished setting up the /boot and / (root) filesystems, but it did not even try to install a bootloader of any kind. That's a critical problem for an operating system installer. I suppose that part of supporting the RockPro64 simply isn't done yet.
The debian u-boot-rockchip package looks like it is meant to solve this issue, but I haven't tried it yet because it doesn't yet recognize the RockPro64 v2.1 board revision. I'll probably revisit it later.
Workaround: Until I learn how to build and install the required u-boot components on a fresh SD card, I can boot from the card that contains the debian installer image. Here's what I did to make it work:
- Tell the installer to create the /boot partition on the same SD card that contains the installer image. This becomes partition 2 on that card.
- Set the bootable flag on partition 2.
- After installing, create the boot/dtbs/rockchip directory on partition 2.
- Copy boot/dtbs/rockchip/rk3399-rockpro64-v2.dtb from partition 1 (the installer partition) to the same directory on partition 2.
- Create the /extlinux directory on partition 2.
- Create an extlinux/extlinux.conf file in that directory on parition 2, with this content: (The value after root= must match what the installer says in its "You will need to boot manually" message.)
Code: menu title Debian
prompt 0
timeout 50
label l0
menu label Debian
linux /vmlinuz
append root=<your-root-device>
initrd /initrd.img
fdt /dtbs/rockchip/rk3399-rockpro64-v2.dtb
With those modifications to the installer SD card, the RockPro64 will boot from it, launch the kernel and initrd from the new partition, and bring up the installed OS. I believe this works because the installer SD card image already contains the u-boot components needed for boot, in the correct disk locations preceding the first partition.
It has been suggested that a custom script in /etc/kernel/postinst.d/ could copy the latest .dtb file to the /boot directory (which lives on SD card partition 2) whenever a new kernel is installed. I like this idea, but have not tried it yet.
Problem 6: (workaround exists) Debian stable/buster does not support the RockPro64.
I want to take advantage of Debian's stable release, but only the unstable suite supports this board for now, so the installer uses packages from unstable and configures the installed system to do the same.
Workaround: Preseed the installer to use the current stable suite (named buster) instead of its defaults, and then use apt pinning to configure the installed system to use the unstable suite for kernel packages.
- Mount the installer SD card on a computer, and create a file called preseed.cfg in the root directory, containing this text:
Code: #_preseed_V1
d-i mirror/suite string buster
- Tell the installer about the preseed configuration by appending preseed/file=/media/preseed.cfg to the kernel command line. Together with the argument we added earlier for the serial console speed, the append line should look like this:
Code: append preseed/file=/media/preseed.cfg console=ttyS2,115200n8
- Boot from the installer SD card and proceed through the installation process, but stop at the "Finish the installation" screen. Do not press the <Continue> button yet.
- Switch away from the installer's virtual screen to a terminal screen, by pressing Control+A and then 2.
- Start a shell in the newly installed filesystem (which is already mounted at /target) by running these commands:
Code: mount -t proc none /target/proc
mount --rbind /sys /target/sys
chroot /target bash
- Add these lines to the end of /etc/apt/sources.list:
Code: # A few components from unstable are needed to boot the RockPro64
deb http://deb.debian.org/debian/ unstable main
deb-src http://deb.debian.org/debian/ unstable main
- Create a file called /etc/apt/preferences.d/unstable-rockpro64.pref containing this text:
Code: Explanation: Avoid most packages from unstable
Package: *
Pin: release a=unstable
Pin-Priority: 1
Explanation: RockPro64 kernel packages from unstable
Package: linux-image-* linux-headers-*
Pin: release a=unstable
Pin-Priority: 500
- Upgrade the newly installed system's kernel packages to the latest available from the unstable suite, using these commands:
Code: apt update
apt upgrade
- Exit the installed filesystem environment:
- Return to the installer's virtual screen, by pressing Control+A and then 1.
- Finally, press the <Continue> button on the "Finish the installation" screen.
With those changes in place, the installed system is entirely Debian stable, except for the kernel. OS updates will work just like a vanilla Debian stable system.
Problem 7: (solved) Network services try to start before the network is up, and fail.
Any network daemons configured to listen only on the eth0 interface may sometimes fail to start, because systemd attempts to launch them without waiting for eth0 to initialize. (The problem may not show up with default network daemon configurations, since those often listen on all interfaces and therefore do not require one to be ready before the daemon starts.)
This happens because Debian's installer sets up eth0 as a hotplug interface, leaving it disconnected from systemd network targets and dependency chains.
Solution: Edit /etc/network/interfaces and add this line just above the "allow-hotplug eth0" line:
I may add more here when I continue the project.
|
|
|
|
| wifi comes and goes and prompts for password often |
|
Posted by: motox6 - 08-05-2020, 01:55 PM - Forum: Mobian on PinePhone
- Replies (2)
|
 |
I have about 6 wifi Access Points that all use the same ESSID.
Even when sitting in the same place, the pinephone running mobian current as of today, will randomly popup the password dialog for the wifi password.
Most of the time it will not successfully reconnect and will ask for the password 3 or 4 times until it apparently gives up or I give up.
Turning the wifi adapter off and back on quickly generally does not help.
Turning the wifi adapter off for about 15 seconds and turning it back on does tend to produce a working wifi session.
The behavior happens every few hours.
Any reason the wifi can't remember the password itself? And perhaps retry / off-on cycle the wifi on its own?
The Access Point I would think it would be using is an ASUS RAX75. (nighthawk).
|
|
|
|
| apt-get update hanging twice (work-around included) |
|
Posted by: motox6 - 08-05-2020, 01:43 PM - Forum: Mobian on PinePhone
- Replies (11)
|
 |
Sorry, I accidentally deleted the content of my prior post, because I did not understand how the reply editor worked.
So I deleted the entire post as what was left was not helpful. (Was there a way to go back to prior versions?)
So here is synopsis without all the nice details I had in the prior post. 
I was doing a fresh install of Mobian to the EMMC.
I did an apt update and apt upgrade
and it got stuck at 7% for 20 hours. Reading elsewhere I found people running into a similar issue and identify a system control restart command related to fstrim as the problem. I killed the systemctl restart process related to fstrim
The process continued a little bit and exited.
I did another
apt upgrade
It got to 88% and got stuck again.
I killed another systemctl restart process this time related to something else.
This time the apt upgrade continued to completion.
I re-ran
apt upgrade
and
dpkg --configure -a
just to make sure everything was okay, and everything was okay.
I think in both hang cases there was also a process related to something about dialog.
Perhaps the upgrade was asking something that did not appear on the screen?
I ran the entire process once on the phone via Kings Cross and once via SSH using a screen session.
|
|
|
|
| broken emmc |
|
Posted by: nieral - 08-05-2020, 11:57 AM - Forum: PinePhone Hardware
- Replies (7)
|
 |
Hey!
My Pinephone BH won't boot anymore. I have PM Os installed on the emmc, the sd card as an additional drive. It worked very well with the stable branch. Three days later it was dead. When pressing the power button it stucks with the 'led test' and makes a short 'click' (which seems to be specific to pm os) and restarts over and over again. that it quits at the "led test" reminds on the error bieps from bios, when something essential did go wrong. So: no boot screen, nothing.
What I already tried:
- completely charge the battery
- flash the sd card with jumpdrive:
The phone booted into the jumpdrive modus, but: lsblk did not show the emmc nor the sd card (which is strange). I can unplug the usb cable while it runs jumpdrive, so the battery works well.
I think the emmc is dead. Can I replace it??
I appreciate any idea.
Ralf
|
|
|
|
| touch screen API resources? |
|
Posted by: Rich_Morin - 08-05-2020, 09:23 AM - Forum: Mobian on PinePhone
- Replies (7)
|
 |
The PinePhone touch screen controller GT917S datasheet contains a lot of useful-looking information, but (of course) it says nothing about the API(s) that can be used to access the controller. I'm interested in supporting braille input on a PinePhone, probably on Mobian and/or pmOS. Can anyone point me to some relevant resources?
|
|
|
|
| touch screen API resources? |
|
Posted by: Rich_Morin - 08-05-2020, 09:22 AM - Forum: PostmarketOS on PinePhone
- No Replies
|
 |
The PinePhone touch screen controller GT917S datasheet contains a lot of useful-looking information, but (of course) it says nothing about the API(s) that can be used to access the controller. I'm interested in supporting braille input on a PinePhone, probably on Mobian and/or pmOS. Can anyone point me to some relevant resources?
|
|
|
|
| Bricked phone after u-boot update |
|
Posted by: DarkManiels - 08-04-2020, 08:00 PM - Forum: Mobian on PinePhone
- Replies (6)
|
 |
Hi there - I'm hoping someone can help me figure out how to fix my Mobian installation. I've got it installed on the eMMC, with a 128Gb SD card for storage of music and such, and it's been working great since I got the phone several weeks ago. Today I did a couple of apt update & upgrades. On the second update it told me that u-boot-sunxi and u-boot-tools were among the packages to be updated. I ran sudo apt upgrade as usual to upgrade the other packages in the list, but then following the directions on the Mobian wiki Tweaks page I also ran
Code: sudo u-boot-install-pinephone
to actually upgrade u-boot. The output in the terminal was exactly the same as the last bit of output from my regular sudo apt upgrade, so I don't know if this actually did anything different or not.
I then tried to reboot the phone, since I figured this would be good after updating the bootloader, and after it shut down nothing happened. Now whether I push the power button briefly or for 5 seconds or so I can't get the phone to turn on - the screen remains blank and off. No green LED, nothing. I swapped out my SD card for a Jumpdrive card and am able to get in and see my filesystem just fine. But when I remove the Jumpdrive SD again I still can't boot into Mobian.
Any thoughts on how to be able to boot into Mobian again would be much appreciated. I'm assuming with Jumpdrive I can do something to fix it, but am not familiar enough with the boot file system to know what files to replace or commands to run. Thanks!
|
|
|
|
| PinePhone CAD Models for Design Improvements |
|
Posted by: jdmark - 08-04-2020, 07:37 PM - Forum: PinePhone Accessories
- Replies (4)
|
 |
Does anyone have a link to the PinePhone CAD models? I might have a design improvement or two that I would like to implement using CAD and either make a custom part or contribute them directly to the Pine64 PinePhone project. If someone would care to share them I would appreciate it, thank you.
|
|
|
|
| Nodes not booting |
|
Posted by: User 18962 - 08-04-2020, 06:50 PM - Forum: Clusterboard
- Replies (23)
|
 |
Im running into an issue where i added a 128gb EMMC to my clusterboard and now my nodes wont boot.
removing the emmc makes no change and only having one in doesnt matter either, they boot in the baseboard.
is there a way to plug something into the USB port on the cluster board to find out what its complaining about?
any help would be much appreciated.
|
|
|
|
|