Notes on Heavyheart
After flashing a new Freebsd image to heavyheart (BeagleBone), you can restore it to work with the Kaypro by transferring over these files, to their appropriate spots:
/etc/ttys
/etc/motd
/etc/issue
/etc/wpa_supplicant.conf
/etc/rc.conf
/etc/syslog.conf
/usr/local/etc/*
/boot/msdos/uEnv.txt
/root/*
/home/*
To change the u-boot baud rate:
- Connect a serial terminal capable of 115200 baud (pocketchip)
- Interrupt the u-boot prompt by pressing space
=> setenv baudrate 9600
=> saveenv
reset device
Beaglebone UART Serial pinout: (Six pins, Ethernet towards the top, USB towards the bottom)
- GND
- RX
- TX
To change Kaypro baud rate:
- Boot from the Kaypro1 start disk
- run config.com
- press ‘D’
- enter 9600
- Before exiting config program, replace the start disk with the heavyheart startup disk
- exit config, save settings
To build a custom ‘Kaypro’ Kernel:
$SOURCE_DIR=/home/shriver/src/freebsd11_4
mkdir $SOURCE_DIR && cd $SOURCE_DIR
svn co http://svn0.us-east.freebsd.org/11.4/head $SOURCE_DIR
export MAKEOBJDIRPREFIX=$SOURCE_DIR/obj
export TARGET_ARCH=armv6
make kernel-toolchain
cp $SOURCE_DIR/sys/arm/conf/BEAGLEBONE $SOURCE_DIR/sys/arm/conf/KAYPRO
vi $SOURCE_DIR/sys/arm/conf/KAYPRO
ident KAYPRO
vi $SOURCE_DIR/sys/conf/newvers.sh
TYPE="UNIX" # Don't change this line until after the toolchain is built above.
# You will have to change it back to FreeBSD to rebuild the toolchain
Note that Version String shown by uname will be extremely noisy, and included the full build path listed above. to reduce the noise, find the line in newvers.sh that says:
VERSTR="${VERINFO}\\n ${u}@${h}:${d}\\n"
and change it to:
VERSTR="${VERINFO}\\n"
make buildkernel KERNCONF=KAYPRO
Copy the file $SOURCE_DIR/sys/KAYPRO/kernel
to heavyheart’s /boot/kernel/
directory
The copy_to_emmc.sh
script is not working in FreeBSD 13, because it creates a FAT12 boot partition by default, limiting the partition size to 12M. The FreeBSD 13 boot partition includes files for several boards and exceeds 12M in size, so the copy fails. The gpart command also seems to fail for some reason when creating the partition. Attempting to manually create the boot partition and copy the files over, resulted in a system that would not successfully save the boot environment variables (baudrate=9600).