Skip to content

Instantly share code, notes, and snippets.

@10maurycy10
Last active April 17, 2021 01:01
Show Gist options
  • Save 10maurycy10/65b444455277c40e9afe0820351a2a05 to your computer and use it in GitHub Desktop.
Save 10maurycy10/65b444455277c40e9afe0820351a2a05 to your computer and use it in GitHub Desktop.
notes form hacking the c64 mini w/ uart

UART:

Pinout

ports up

|
| 0 gnd
| 1 data out
| 2 data in
| 3 unknown
| 
^ nerest board edge

UART PARAMS:

parity: 0
size: 8
flow: None
stop: 1
speed: 115200

How to get a root shell w/out password

First, enter uboot by holding "s" while the device is booting. Enter these commands into the uboot shell.

sunxi_flash read 40007800 boot
boota 40007800

The device will boot with ramfs. To mount the nand the next block of commands.

insmod /lib/modules/3.4.39/nand.ko
mount /dev/nandb /mnt

If you want to change the root password do this:

passwd
mv /mnt/etc/shadow /mnt/etc/shadow.old
cp /etc/shadow /mnt/etc

warning: be sure to unmount /dev/nandb before removing power.

umount /mnt

default credentals:

uname: "root"
pass: "chuckpeddle"

note: the file system is readonly by default. fix using this command:

mount / --remount -rw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment