# # Build # if {[have_spec foc] == 0} { puts "Runs on Fiasco.OC only" exit 0 } # generic components set build_components { core init drivers/timer drivers/framebuffer drivers/sd_card drivers/usb drivers/uart server/nitpicker server/nit_fb server/part_blk server/terminal server/terminal_log server/nic_bridge l4android } lappend_if [have_spec x86] build_components drivers/nic lappend_if [have_spec x86] build_components drivers/atapi lappend_if [have_spec pl180] build_components drivers/sd_card lappend_if [have_spec lan9118] build_components drivers/nic/lan9118 lappend_if [have_spec pci] build_components drivers/pci lappend_if [have_spec ps2] build_components drivers/input/ps2 build $build_components create_boot_directory # # Config # set config { } install_config $config # # Boot modules # set boot_modules { core init timer fb_drv sd_card_drv usb_drv kdb_uart_drv nic_bridge nitpicker nit_fb part_blk terminal terminal_log l4android root-ginger.gz } build_boot_image [join $boot_modules " "] append qemu_args " -m 512 " append qemu_args " -serial mon:stdio " append_if [have_spec x86] qemu_args " -hda bin/system-ginger.img " append_if [have_spec x86] qemu_args " -net nic,model=e1000 " append_if [have_spec pl180] qemu_args " -drive file=bin/system-ginger.img,if=sd,cache=writeback " append_if [have_spec lan9118] qemu_args " -net nic,model=lan9118 " append qemu_args " -net user -redir tcp:5555::5555 " run_genode_until forever