Skip to content

Instantly share code, notes, and snippets.

@nathanrossi
Created October 25, 2018 19:18
Show Gist options
  • Save nathanrossi/67537236a43a784a3ab12be41bce75b6 to your computer and use it in GitHub Desktop.
Save nathanrossi/67537236a43a784a3ab12be41bce75b6 to your computer and use it in GitHub Desktop.
OE built or1k - kernel boot log + python
Compiled-in FDT at (ptrval)
Linux version 4.18.14 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 Thu Oct 25 19:09:06 UTC 2018
CPU: OpenRISC-0 (revision 0) @20 MHz
-- dcache disabled
-- icache disabled
-- dmmu: 128 entries, 1 way(s)
-- immu: 128 entries, 1 way(s)
-- additional features:
-- power management
-- PIC
-- timer
setup_memory: Memory: 0x0-0x8000000
Setting up paging and PTEs.
map_ram: Memory: 0x0-0x8000000
itlb_miss_handler (ptrval)
dtlb_miss_handler (ptrval)
OpenRISC Linux -- http://openrisc.io
Built 1 zonelists, mobility grouping on. Total pages: 16320
Kernel command line: console=ttyS0 earlycon debug
earlycon: ns16550a0 at MMIO 0x90000000 (options '115200')
bootconsole [ns16550a0] enabled
Dentry cache hash table entries: 16384 (order: 3, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 2, 32768 bytes)
Sorting __ex_table...
Memory: 113216K/131072K available (3084K kernel code, 110K rwdata, 320K rodata, 13520K init, 89K bss, 17856K reserved, 0K cma-reserved)
mem_init_done ...........................................
NR_IRQS: 32, nr_irqs: 32, preallocated irqs: 0
clocksource: openrisc_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 95563022313 ns
40.00 BogoMIPS (lpj=200000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 0, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 0, 8192 bytes)
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: -2, 3072 bytes)
random: get_random_u32 called from 0xc01818e0 with crng_init=0
NET: Registered protocol family 16
clocksource: Switched to clocksource openrisc_timer
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 8192 bytes)
TCP established hash table entries: 2048 (order: 0, 8192 bytes)
TCP bind hash table entries: 2048 (order: 0, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
UDP hash table entries: 512 (order: 0, 8192 bytes)
UDP-Lite hash table entries: 512 (order: 0, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
workingset: timestamp_bits=30 max_order=14 bucket_order=0
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
console [ttyS0] disabled
90000000.serial: ttyS0 at MMIO 0x90000000 (irq = 2, base_baud = 1250000) is a 16550A
console [ttyS0] enabled
console [ttyS0] enabled
bootconsole [ns16550a0] disabled
bootconsole [ns16550a0] disabled
libphy: Fixed MDIO Bus: probed
NET: Registered protocol family 17
Freeing unused kernel memory: 13520K
This architecture does not have kernel memory protection.
init started: BusyBox v1.29.2 (2018-10-25 15:11:12 UTC)
starting pid 24, tty '': '/bin/mount -t proc proc /proc'
starting pid 25, tty '': '/bin/mount -t sysfs sysfs /sys'
starting pid 26, tty '': '/bin/mount -t devtmpfs devtmpfs /dev'
starting pid 27, tty '': '/bin/mount -o remount,rw /'
starting pid 28, tty '': '/bin/mkdir -p /dev/pts'
starting pid 29, tty '': '/bin/mount -t devpts devpts /dev/pts'
starting pid 30, tty '': '/bin/mount -a'
mount: mounting /dev/root on / failed: No such device
starting pid 40, tty '': '/etc/init.d/rcS'
starting pid 42, tty '/dev/ttyS0': '/sbin/getty 115200 ttyS0'
OpenEmbedded nodistro.0 qemuor1k /dev/ttyS0
qemuor1k login: root
login[42]: root login on 'ttyS0'
root@qemuor1k:~# uname -a
Linux qemuor1k 4.18.14 #1 Thu Oct 25 19:09:06 UTC 2018 openrisc GNU/Linux
root@qemuor1k:~# python3 --version
random: python3: uninitialized urandom read (24 bytes read)
Python 3.5.6
root@qemuor1k:~# python3
random: python3: uninitialized urandom read (24 bytes read)
Python 3.5.6 (default, Oct 25 2018, 18:32:25)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print("hello mithro")
hello mithro
>>>
root@qemuor1k:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment