Repository navigation
Conversation
From 5 s the boot screen says the step under way at the foot, where the
first start's line is ("Checking the card · C3"), and from 20 s "Taking
longer than usual" over Zyper with what to do if it never ends ("Stuck?
Hold POWER for 10 s, then turn it on."). The first start's line says the
same when its bar has not moved for a minute. SELECT held 2 s shows the
kernel's latest lines, and every 2 s the splash beats into the kernel's
log, so a restart's console tells a stuck start from a frozen chip.
The steps come from datapart and zyperos.init (/tmp/splash-stage and a
zyboot: stage= line). The lines are pictures from tools/genbootslow.py
in all eight languages for each handheld's scale. slowline.h is shared by
splash.c (Pixel 2, R36S) and splash-fb.c (Brick, Smart Pro), whose hold
now lasts as long as the start takes. check-bootslow holds it on the
splash's own frames, check-genbootslow the pictures.
When ZyperOS restarted a start that did not finish, or a handheld that froze while playing, the next start says it once, in Zyper's bubble on the home: "I had to restart!" and "The last start did not finish. Code K1W · 0.6 s. Sending your logs on the Discord helps." The code is the stage, the reason and the kernel's time, the same in every language. About ZyperOS keeps it as Last Restart for 30 days, so it is still there once the bubble has gone. It reads crashlog's summary in /run/zyperos-lastboot.txt and keeps a copy on the card, so one report is said once. check-lastboot holds the summary, the code, the once and the 30 days; check-i18n-shots the bubble and the row in every language.
…s first line crashlog writes what the next start says beside its report: /run/zyperos-lastboot.txt and PX2BOOT's zyperos-lastboot.txt, key=value. The reason is P (a panic, lockups and RCU stalls too), T (hung_task), R (rootwait), W (the launcher's watchdog, or a reset with no panic before the home, the chip's watchdog) or X (a reset after the home with nothing to say). The stage is the last zyboot: stage= line, H once ZyperOS drew, and before any K1, K2 or C1 from the console. Then the kernel's time and its last line, the version, the device and the report's name. The splash says "splash: started" first, so a console that ends before it stopped before init started it.
…atchdog
The launcher's watchdog is read by the line it says as it restarts ("an
emergency sync, and a restart"), not by any watchdog line: one that came
round again restarted nothing. The header no longer says there is no
hardware watchdog: where the image starts the chip's, a reset with no panic
before the home is it.
The splash keeps the last step when it reads /tmp/splash-stage half
written: the scripts write it with a plain echo.
…s arrive The tester's band now starts at one place on every handheld, between Zyper's chin (458) and the wordmark (505): it cut the wordmark in half on the Brick and the Smart Pro and touched Zyper's chin on the Pixel 2. As many rows fit as the band holds, the foot's on the last row, and a line wraps at a space. Its letters are drawn at each handheld's scale (slow/<handheld>/glyphs.bin from tools/genbootslow.py), so the Brick's are not 0.6 of the Pixel 2's. The first line and the help stay over Zyper while it is up: they are no longer at the foot. Each slow line now arrives in quick on the out curve, as the lab's picks had it: the step fades in, the first line and the help come down 14 as they do. check-bootslow holds the first frame, half way and the end. Zyper's bubble says a cut on the host: its lines are formatted from the table (a code, a version), so a cut was only a note and check-i18n-shots passed a French bubble that ended in "...".
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A start that takes longer than it should now says so on the boot screen, and when ZyperOS had to restart a start (or a handheld that froze while playing), the next start tells me once in Zyper's bubble, with a code I can ask for on the Discord.
Design record: the boot notice lab,
~/Documents/ZyperOS/labs/boot-notice-lab.html(https://claude.ai/artifact/5oDVrw8dKG4dJd53yJ7Eud). DESIGN.md 11.20 ("Slower than usual") and 11.70 ("The last start's restart") have it in words.Pairs with the usb-hang PR (USB File Transfer and the watchdogs): #487. Either order builds and passes on its own, but I'd merge usb-hang first: its hardware watchdog and the launcher's watchdog are what this one's reasons W and the "The handheld froze" bubble report on. Whichever goes second takes main with two small conflicts,
plastron/buildroot/package/zyperos/zyperos.initandplastron/buildroot/board/px2/rootfs-overlay/etc/init.d/datapart, where both sides keep their lines (this one'sstagecalls, usb-hang'shung_panic_off).My picks in the lab, and where they are
SLOW_STAGE_SandSLOW_HELP_S,plastron/buildroot/package/splash/src/slowline.h:64.res/strings/boot.txt,boot.slow, in 8 languages./tmp/splash-stageand azyboot: stage=line in the kernel's log): C1 to C3, U1, L1.SLOW_STALL_S): its line becomes "Stuck? Hold POWER for 10 s, then turn it on."; the bar stays.lastboot_watch,src/main.c:4750;lastboot_bubble,src/shelf_draw.c:2058.src/lastboot.c).src/about_screen.c:189,src/lastboot_ui.c).crashlog writes the summary the launcher reads (
/run/zyperos-lastboot.txt, andzyperos-lastboot.txton PX2BOOT beside the report): reason W/P/T/R/X, stage K1/K2/C1-C3/U1/U2/L1/H.Where it differs from the lab, measured
What I fixed on review
SLOW_TESTER_TOP_Y,slowline.h:282. As many rows as fit, the foot on the last, wrapped at spaces. Its letters are drawn at each handheld's scale (slow/<handheld>/glyphs.binfromtools/genbootslow.py), so the Brick's are no longer 0.6 of the Pixel 2's. The first line and the help stay over Zyper while it is up.slow_in,slow_frame,slowline.h:510).ui_fit_cut(src/ui.c:978) says it as a cut, and the check fails on it; I proved it with the lab's French.Checks
make native: clean (the two warnings are main's).check-bootslow: 32 handheld and language sets: nothing before 5 s, the step from 5 s, the first line and the help from 20 s, each arriving in quick (its first frame, half way and the end), clear of every frame, taken away to the pixel, the tester's view, the copy's help, the beat.check-genbootslow,check-lastboot,check-crashlog: pass.check-i18n-shotsfor the bubble (start and froze) and the About row in 8 languages on the Pixel 2, the Brick and the Smart Pro (wide), light and dark: everything fits. I looked at them, and at the boot screen's shots for every handheld, theme and language.splash.cwith libdrm,splash-fb.c): clean.make check CHECK_JOBS=4: all 277 checks passed in 30 min, none flaky.On a spare card
python3 tools/merge-train.py --integrate-only 487 485), write it to a spare card, and start it once to the home.zytest=hanginzytest.txton PX2BOOT and start. init is held before any step, so the boot screen shows no step and no lines (they come only for a step it knows). Hold SELECT 2 s: the kernel's lines show,hwdog: zytest=hang ...among them, and the beat every 2 s; let go and the screen is as it was. About 60 s in the chip's watchdog resets it.zyperos-lastboot.txtandzyperos-crash.txtare on PX2BOOT. Start again: the bubble does not come back for the same restart.zytest=stallinzytest.txt, start. It reaches the home; about 60 s later the chip resets. The next start says "The handheld froze. Code HX · ...".