=============================================================================== WRITING PsionLX TO A COMPACTFLASH CARD =============================================================================== The machine boots from the card; nothing is installed to it. With psionlx-cf-1gb.img or psionlx-cf-1gb-soho-safe.img the netBook Pro's internal flash is never touched, and taking the card out returns it to Windows CE exactly as before. psionlx-cf-1gb-soho-original-ARCHIVAL.img is different: it is Psion's image unchanged, and it reads and mounts the internal flash. Do not boot it on a machine whose Windows CE you want to keep. See THE-THREE-IMAGES.txt. ------------------------------------------------------------------------------- WHAT YOU NEED ------------------------------------------------------------------------------- * A Psion Teklogix netBook Pro. * A CompactFlash card of 1 GB or larger. Type I or II both work. * A CF card reader on a Mac, Linux or Windows PC. Each image is 1,024,966,656 bytes -- just under 1 GiB, so it fits a card sold as "1 GB". Anything larger also works; the spare space is unused unless you grow the partition afterwards (see the end of this file). ------------------------------------------------------------------------------- WHICH IMAGE ------------------------------------------------------------------------------- psionlx-cf-1gb.img THE ONE TO USE psionlx-cf-1gb-soho-safe.img Psion's image, made safe psionlx-cf-1gb-soho-original-ARCHIVAL.img Psion's image, unmodified -- touches the internal flash Check what you downloaded before writing it: shasum -a 256 psionlx-cf-1gb.img (macOS) sha256sum psionlx-cf-1gb.img (Linux) and compare against SHA256SUMS.txt in this folder. ------------------------------------------------------------------------------- MACOS ------------------------------------------------------------------------------- 1. FIND THE CARD. The device number is NOT stable. macOS hands out the next free number each time something is plugged in, so a card that was /dev/disk10 last week can be /dev/disk4 today. Look it up every time: diskutil list external physical That lists only real external disks, so it normally shows one entry. If nothing is listed, the reader is not attached or the card is not seated -- re-seat it and look again. CHECK THE SIZE MATCHES the card you put in before going any further. 2. UNMOUNT IT -- unmount, not eject: diskutil unmountDisk /dev/diskN 3. WRITE IT. Use rdiskN (raw), which is many times faster than diskN: sudo dd if=psionlx-cf-1gb.img of=/dev/rdiskN bs=4m status=progress Expect several minutes; on a slow card, considerably longer. 4. EJECT: diskutil eject /dev/diskN Replace N with the number from step 1. WRITING TO THE WRONG DISK DESTROYS IT, and /dev/disk0 is your Mac's own drive. Run "diskutil list external physical" once more just before the dd. ------------------------------------------------------------------------------- LINUX ------------------------------------------------------------------------------- Identify the card with "lsblk" and check the size carefully, then: sudo dd if=psionlx-cf-1gb.img of=/dev/sdX bs=4M status=progress conv=fsync /dev/sdX, not /dev/sdX1 -- the image contains the partition table. ------------------------------------------------------------------------------- WINDOWS ------------------------------------------------------------------------------- Use Rufus, balenaEtcher, or Win32DiskImager in "write image" mode and select the whole card, not a drive letter. Windows will afterwards offer to format the card, because it cannot read the Linux partition. SAY NO. ------------------------------------------------------------------------------- BOOTING IT ------------------------------------------------------------------------------- Put the card in the netBook Pro's CF slot and power on. BooSt, the netBook Pro's bootloader, runs nBkPro.img from the card, which loads nBkProOs.img -- the Linux kernel and its start-up ramdisk -- and the kernel mounts the card's second partition as the root filesystem. You should see Psion's boot splash. THE FIRST BOOT IS SLOWER: before the desktop appears, Psion's image finishes setting up 22 of its packages (languages, image loaders, fonts, settings schemas) and generates the machine's SSH keys, with only the splash on the screen. It is not stuck -- leave it. Both happen once; later boots go straight to the desktop, which opens on the TODAY screen. If the machine boots Windows CE as usual, BooSt did not find the card. Re-seat it, and check the write actually completed. ------------------------------------------------------------------------------- WHAT THE CARD LOOKS LIKE ------------------------------------------------------------------------------- MBR, signature 0xAA55 Partition 1 type 06, FAT16, bootable, 70 MB, LBA 2048, label PSIONBOOT NBKPROOS.IMG the kernel and its start-up ramdisk NBKPRO.IMG a 279-byte BooSt script, one line: load nBkProOS.img run README.TXT what this partition is Partition 2 type 83, ext2, 906.5 MB, LBA 145408, label PSIONLX The root filesystem. Any computer can read partition 1. Windows and macOS mount it when the card is inserted. ------------------------------------------------------------------------------- CHECKING nBkPro.img -- DO THIS FOR ANY CARD YOU DID NOT WRITE YOURSELF ------------------------------------------------------------------------------- BooSt runs a file called nBkPro.img automatically from an inserted card. Whatever is in it decides whether your machine survives. The commands are plain text after a 256-byte header, so you can read them: tail -c +257 /Volumes/PSIONBOOT/NBKPRO.IMG (macOS) tail -c +257 /media/$USER/PSIONBOOT/NBKPRO.IMG (Linux) On these images it prints exactly: load nBkProOS.img run If you ever see a line beginning "nand" -- "nand partition" or "nand -ignore erase" especially -- that script writes the internal flash. Delete the file before booting. Never put a file called NBLXLoad.sh on partition 1 either. Psion's start-up ramdisk, and the community one, run it from there: it was Psion's installer for the internal flash. ------------------------------------------------------------------------------- IF THE CARD DOES NOT START ------------------------------------------------------------------------------- The kernel the full and safe images boot is the community CF kernel that has run PsionLX from cards since 2005, byte for byte, with its start-up ramdisk reduced so it cannot reach the internal flash. It has booted the full image to Psion's desktop on a real netBook Pro. Remember the first boot waits on the splash for a while. If a card written from one of those two images never gets past the splash on a SECOND boot, or never reaches the splash at all, put back the unmodified community kernel: 1. Mount partition 1 of the card on a computer. 2. Copy 3-PSION-SOURCES/original-images/nBkProOs.img_cf.fuchs-gibson-20050325 onto it as nBkProOs.img, replacing the file that is there. 3. Eject it properly and boot again. That kernel's ramdisk looks for the root filesystem on the card first, as the hardened one does, but still carries the flash tools and would run an NBLXLoad.sh if one were present. There is none on these cards; keep it that way. The HPC:Factor community would like to hear either way. ------------------------------------------------------------------------------- USING THE WHOLE CARD ------------------------------------------------------------------------------- On a card larger than 1 GB the extra space is unused. To claim it, grow partition 2 with your partitioner of choice, then on Linux: sudo e2fsck -f /dev/sdX2 && sudo resize2fs /dev/sdX2