b-man / darwin-loader Goto Github PK
View Code? Open in Web Editor NEWA Darwin bootloader module for U-Boot
License: Other
A Darwin bootloader module for U-Boot
License: Other
It's the builtin environment that let you just type in "run xx" at boot prompt to kick off XNU boot over TFTP assuming you had TFTP set up correctly.
#define BOOTKIT_ENV \
/* Temporary memory for loading stuff */ \
"tmp_addr=0x90000000;\0" \
/* Load boot.imgx from network */ \
"xnet=setenv ipaddr 192.168.55.10;" \
"setenv serverip 192.168.55.1;" \
"setenv usbethaddr ee:ee:ee:ee:ee:ee;" \
"usb start;" \
"tftpboot ${tmp_addr} /boot.imgx;"\
"imgx last\0" \
/* XNU (MMC ramdisk) */ \
"xx=run xnet;" \
"fatload mmc ${mmcdev} ${KernelMemoryTop} /ramdisk.dmg;"\
"rdx;" \
"mach_boot\0" \
/* Legacy */ \
"startxnu=run xx\0"
[boot]$ run xx
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
scanning usb for ethernet devices... 1 Ethernet Device(s) found
ERROR: Need valid 'usbnet_devaddr' to be set
at ether.c:2369/usb_eth_init()
Waiting for Ethernet connection... done.
Using sms0 device
TFTP from server 192.168.55.1; our IP address is 192.168.55.10
Filename '/boot.imgx'.
Load address: 0x90000000
Loading: EHCI timed out on TD - token=0x88008d80
T #################################################################
#################################################################
#################################################################
#################################################################
#######################################
399.4 KiB/s
done
Bytes transferred = 4383640 (42e398 hex)
INFO: image at 0x90000000, magic TofC
INFO: toc@90000000: 16 load commands
INFO: macho@90000060: 'mach.debug.omap3' cmp=1 sz=00838aa0 dst=80001000
QLZ : 0x90000060 => 0x820e3a80 ...
MMAP: mapping kernel ...
[MAP:__TEXT]: copy 0x820e3a80 =(6496256)=> 0x80001000
[MAP:__DATA]: copy 0x82715a80 =(151552)=> 0x80633000
[MAP:__DATA]: zero 0x80658000 (368640)
[MAP:__KLD]: copy 0x8273ba80 =(8192)=> 0x806b2000
[MAP:__LINKEDIT]: copy 0x8273da80 =(1960608)=> 0x806b4000
INFO: vmsize=0x891aa0 paddr=0x80001000 vaddr=0x80001000
PASS: loaded kernel 'mach.debug.omap3' (ep=800fe1f0)
INFO: macho@903fa058: 'com.apple.driver.AppleNMI' cmp=1 sz=00000391 dst=80893000
QLZ : 0x903fa058 => 0x80893100 ...
PASS: loaded pure Info.plist driver 'com.apple.driver.AppleNMI'
INFO: macho@903fa2b0: 'com.apple.iokit.ApplePlatformFamily' cmp=1 sz=000003fa dst=80894000
QLZ : 0x903fa2b0 => 0x80894100 ...
[-----snip-----]
PASS: loaded Info.plist/Exec driver 'com.apple.kpi.libkern'
INFO: macho@90404b00: 'com.apple.kpi.dsep' cmp=1 sz=000007d3 dst=808c0000
QLZ : 0x90404b00 => 0x808c0100 ...
[-----snip-----]
reading /ramdisk.dmg
40960000 bytes read in 2575 ms (15.2 MiB/s)
PASS: loaded dmg [8092b000, sz=02710000, 249 files, 67 dirs]
INFO: kmem start=0x80001000 size=0x0303a000
BOOT: allocating boot args ...
BOOT: init memory map ...
KEXT: com.apple.iokit.IOStorageFamily E[0x808eb100 0x3e700] I[0x80929800 0x159b]
[-----snip-----]
KEXT: com.apple.driver.AppleNMI E[0x00000000 0x0] I[0x80893100 0x391]
INFO: 14 kext(s) loaded
INFO: adding ramdisk [0x8092b000, sz=0x02710000] to mem map
BOOT: flattening device tree ...
DTRE: flattening (0x8303b138) ...
BOOT: populating boot args ...
INFO: phys_base=0x80000000 virt_base=0x80000000
BOOT: DT__Finalize
PASS: starting kernel at 0x800fe1f0 ...
kprintf initialized!
[-----snip-----]
Darwin Kernel Version [-----snip-----]: [-----snip-----] :xnu-[-----snip-----]/BUILD/obj//DEBUG_ARM_OMAP3
[-----snip-----]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.