Skip to content

Instantly share code, notes, and snippets.

$ bmake
cc -pipe -g -MD -MF mkubootimage.d -MT mkubootimage.o -c mkubootimage.c
mkubootimage.c:33:9: error: expected declaration specifiers or ‘...’ before string constant
__RCSID("$NetBSD: mkubootimage.c,v 1.18 2014/09/30 10:21:50 msaitoh Exp $");
^
mkubootimage.c:37:24: fatal error: sys/endian.h: No such file or directory
compilation terminated.
*** Error code 1
Stop.
loader> load -t dtb /boot/dtb/bananapi-usb.dtb
/boot/dtb/bananapi-usb.dtb size=0x7be7
loader> boot
Booting...
Using DTB from loaded file '/boot/dtb/bananapi-usb.dtb'.
Kernel entry at 0x0x42200100...
Kernel args: (null)
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 The FreeBSD Project.
loader> load -t dtb /boot/dtb/bananapi-usb.dtb
/boot/dtb/bananapi-usb.dtb size=0x7be7
loader> boot -v
Booting...
Using DTB from loaded file '/boot/dtb/bananapi-usb.dtb'.
Kernel entry at 0x0x42200100...
Kernel args: -v
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 The FreeBSD Project.
/boot/dtb/bananapi-usb.dtb size=0x7be7
loader> boot -v
Booting...
Using DTB from loaded file '/boot/dtb/bananapi-usb.dtb'.
Kernel entry at 0x0x42200100...
Kernel args: -v
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
oader> load -t dtb /boot/dtb/bananapi-usb.dtb
/boot/dtb/bananapi-usb.dtb size=0x7be7
loader> boot -v
Booting...
Using DTB from loaded file '/boot/dtb/bananapi-usb.dtb'.
Kernel entry at 0x0x42200100...
Kernel args: -v
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 The FreeBSD Project.
U-Boot SPL 2015.04 (Mar 08 2016 - 10:01:34)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
U-Boot 2015.04 (Mar 08 2016 - 10:01:34) Allwinner Technology
CPU: Allwinner A20 (SUN7I)
I2C: ready
DRAM: 1 GiB
ptids=(`cd /dev/disk/by-id/;ls`)
idcount=${#ptids[@]}
for (( c=0; c<${idcount}; c++ )); do
devs[c]=(`readlink /dev/disk/by-id/${ptids[$c]} | sed 's/\.\.\/\.\.\///'`)
echo "${devs[c]}"
done
Security check:
D4N kernel log messages:
-- End of security output --
-- End of daily output --
daily_show_success="NO"
daily_show_info="NO"
daily_show_badconfig="NO"
weekly_show_success="NO"
weekly_show_info="NO"
weekly_show_badconfig="NO"
monthly_show_success="NO"
monthly_show_info="NO"
import pygame
import cols
# Define some colors
BLACK = ( 0, 0, 0)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
BLUE = (0, 0, 255)
GREEN = (0, 255, 0)