The initramfs runs a script at boot that detects if there's a microsd card inserted, and switches to that if one is there.
DragonBox Pyra - GIT Repositories
dev.pyra-handheld.com
It will disable the emmc, so the installer sd card probably won't work if there's a microsd card too.
The installer itself is just a simple script that creates the two partitions, dumps uboot in the space before it, and extracts the rootfs.tgz to them.
It's in the pyra-install package, the script itself end up in /usr/share/pyra/scripts/pyra-install.sh , also at
https://dev.pyra-handheld.com/atc/pyra-install
I haven't had the time yet to clean up all the stuff and update it, so it has slightly outdated uboot files. (also need to get all the initramfs installer stuff in there too) (and check/fix all the other known problems, we really need more people helping with this)
Where does intramfs live? Right now my Pyra isn't booting at all. If intramfs lives on the eMMC and my eMMC is garbled - what then?
Right now I have some very conditional responses from my Pyra. The following test cases were done and recorded in order. It feels like one test type can change what the unit response is to the next test type.
* No cards installed, battery installed, press power button - no response. When last checked battery had 80% charge. Tried with a 2nd battery, same response.
* No card installed, battery removed, connected to power via microUSB 3.0 wide port (power button glows red, unit draws 0.3A), unit attempts to power on (draws 1.8A), a few hundred lines of tiny script fly by and screen blanks, keyboard backlight is on. Good = something happens. Bad = doesn't make it through boot from the eMMC.
* OS boot card (32GB Lexar SDXC - has worked before) installed left SD port, battery removed, connected to power via microUSB 3.0 wide port (power button flashes red, unit draws 0.15A), no boot progress. Pressing power button has no visible effect - red flashing power button continues to flash.
* Alternate/other OS boot card installed left SD port (64GB Samsung EVO - has worked before in left SD port with adapter and internally mounted), battery removed, connected to power via microUSB 3.0 wide port (power button flashes red, unit draws 0.15A), no boot progress. Pressing power button causes keyboard backlight to flash one time, then back to the power button flashing.
* OS loader / flash card installed left SD port (8GB Patriot microSDHC card in adapter - has worked before to load OS to eMMC), battery removed, connected to power via microUSB 3.0 wide port (power button flashes red, unit draws 0.15A), no boot progress. Pressing power button causes keyboard backlight to flash then unit boots from card and installs rootfs to the eMMC. Good = unit appears alive and this is kind of the objective - to get a working OS on the eMMC again. Pulls ~1A through the process. Syncing, prompts to poweroff (completes). Unit goes to flashing red power button.
* No card installed, first boot after OS loader / flash complete, battery removed, connected to power via microUSB 3.0 wide port. Unplugged unit from power, plugged back in. Flashing power button for 5 seconds then solid then keyboard backlight comes on and - there is a grey line left to right at the bottom edge of the display like zillions of characters flying by too fast for the eye to resolve. Press and hold power button 9 seconds unti resets to flashing power button, stays that way no further activity. Pressing power button once results in solid power button seconds later, keyboard backlight comes on, screen scrolls a few hundred lines of text then that same grey line - this time through the whole screen of characters flying by too quick to resolve. Press and hold power button 9 seconds to exit the loop.
* 32GB OS card installed left SD slot. No battery. Plugged into microUSB 3.0 wide for power. Power button flashes red, keyboard backlight flashes once, power button continues red. Pressing power button flashes keyboard backlight once, then goes back to just the power button flashing. Unit is drawing 0.01A, barely registering on my meter.
* Remove the 32GB OS card, plug unit back into the microUSB 3.0 wide for power, draws 0.3A and boots from the corrupted eMMC again. Press/hold power button, unit shuts down to flashing power button, insert OS boot SD, unit powers on and loads the eMMC image, not the SD card one - lines of nothing but flying characters again. Power button glowing purple, left light green, right light red.
* Unplugged, put the battery in, lights came on before I could flip it over. systemd-journal error No space left on device. Press power button once, system powers down completely. Press power button = nothing happens.
* Switch to microSDXC OS card in adapter in left slot. Add battery. System unresponsive.
* Remove card, reinsert battery, system boots automatically from eMMC to dp logo (no button press). Welcome screen displayed. Answer yes to calibrate touchscreen - it skips it anyway - Please enter full name - fills with +++++++++++++++++++... - Wait 30 seconds then press/hold backspace button. No good - can't get rid of the +++++s. I'm not sure how big that buffer is, but it seems to be tens of thousands of bytes. Use cancel button to recycle it. Please try again [OK], Please enter your full name. Left shoulder shift is not working to create a capital letter. Right keyboard shift does fine. Enter 'Grench', goes to dp logo screen with working x mouse pointer at 15:17 local time. Waiting. 15:20 still stuck on the same dp dark red on black logo with x mouse pointer. Calling it locked. Press power button once, no response. Press and hold 9 seconds unit powers down completely.
* Battery removed, 64GB OS microSDXC card placed internally, battery inserted, no light, no response to power button. Connect unit to microUSB 3.0 wide power supply, unit draws 1.87 A, boots to Welcome screen to configure what seems to be the eMMC OS. Yes to touchscreen calibration - it skips it - ++++++++ filled user name box, wait, Cancel, OK, ++++++++++ filled user name box, wait, Cancel, OK, ++++++++++ filled user name box, Cancel, OK, ++++++++++ filled user name box, wait, Cancel, OK, ++++++++++++ filled user name box, wait, run nubs in all directions fully in case picking up some noise from centering, Cancel, OK, +++++++++ filled user name box, Cancel, OK, ++++++++++ filled user name box, Click in box, press and hold backspace for 30+ seconds and it begins to clear, using backspace and delete clear box. Try to use lower left shoulder button to shift for G character and get g. Use right keyboard shift to input Grench, click OK. dp dark red logo on black background, movable x mouse pointer. Stuck.
* Working on a theory. One of the shoulder buttons is relevant in booting from internal microSDXC, but which one? I was able to get it to boot from it before by holding all four and pressing power, but now the unit will not power on from battery but powers on instantly from mains.
* Disconnected from microUSB 3.0 wide cable and immediately pressing both right shoulder buttons and power button. Back to a Welcome! screen, not sure if it is internal card or eMMC. Start - Calibrate=yes, system skipped, +++++++++ filled user name box, rinse repeat, catch it quick to get backspace and delete for the +s, left shoulder shift fails, input Grench, dp dark red logo on black screen - I'm pretty sure this is the eMMC again. Press/hold power button to get out of stuck. Takes 13 seconds.
* Tried cycling power with shoulder buttons pressed. Red power light came on, otherwise unreesponsive. Removed / placed battery. unresponsive.
The above took a two and a quarter hours. Hopefully there is something in there for ED, aTc or other devs to inspire ideas for me to try.
Things to do:
1. Dig through my old microSD and SD card collection to find another one to use for the eMMC OS flasher. Maybe that card I am using to flash the OS is the issue? I will make a new/different one for flashing the OS.
2. Re-create my OS SD cards. Maybe I have corrupted them. I will create a new set.
Other suggestions?