2012-07-18 09:37:03 +00:00
|
|
|
assert_spec foc
|
|
|
|
assert_spec platform_panda
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
build {
|
|
|
|
core
|
|
|
|
init
|
|
|
|
drivers/timer
|
|
|
|
drivers/framebuffer
|
|
|
|
drivers/sd_card
|
|
|
|
drivers/usb
|
2013-11-13 13:10:49 +00:00
|
|
|
drivers/gpio
|
2012-07-18 09:37:03 +00:00
|
|
|
server/nic_bridge
|
|
|
|
server/part_blk
|
|
|
|
l4linux
|
|
|
|
}
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
|
|
|
# Config
|
|
|
|
#
|
|
|
|
set config {
|
|
|
|
<config prio_levels="2">
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="RAM"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="CAP"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="SIGNAL"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
|
|
|
<start name="timer" priority="0">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
</start>
|
|
|
|
<start name="fb_drv" priority="-1">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides><service name="Framebuffer"/></provides>
|
|
|
|
</start>
|
|
|
|
<start name="sd_card_drv" priority="0">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides><service name="Block"/></provides>
|
|
|
|
</start>
|
2013-11-13 13:10:49 +00:00
|
|
|
<start name="gpio_drv">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides><service name="Gpio"/></provides>
|
|
|
|
<config/>
|
|
|
|
</start>
|
2012-07-18 09:37:03 +00:00
|
|
|
<start name="usb_drv" priority="-1">
|
2012-09-17 14:01:07 +00:00
|
|
|
<resource name="RAM" quantum="12M"/>
|
2012-07-18 09:37:03 +00:00
|
|
|
<provides>
|
|
|
|
<service name="Input"/>
|
|
|
|
<service name="Nic"/>
|
|
|
|
</provides>
|
2013-05-22 09:38:16 +00:00
|
|
|
<config ehci="yes">
|
2012-07-18 09:37:03 +00:00
|
|
|
<hid/>
|
2014-04-22 09:50:56 +00:00
|
|
|
<nic mac="02:00:00:00:01:01" />
|
2012-07-18 09:37:03 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
<!--<start name="part_blk">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides><service name="Block"/></provides>
|
|
|
|
<config>
|
|
|
|
<policy label="vmlinux.1 -> sda" partition="1" />
|
|
|
|
<policy label="vmlinux.2 -> sda" partition="2" />
|
|
|
|
<policy label="test-libc_ffat" partition="3" />
|
|
|
|
</config>
|
|
|
|
<route>
|
|
|
|
<service name="Block"> <child name="sd_card_drv"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>-->
|
|
|
|
<!--<start name="nic_bridge" priority="-1">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides><service name="Nic"/></provides>
|
|
|
|
<route>
|
|
|
|
<service name="Nic"> <child name="usb_drv"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>-->
|
|
|
|
<start name="vmlinux.1" priority="-1">
|
|
|
|
<binary name="l4linux"/>
|
|
|
|
<resource name="RAM" quantum="296M"/>
|
|
|
|
<config args="mem=254M l4x_rd=initrd.gz">
|
|
|
|
<block label="sda" />
|
|
|
|
</config>
|
|
|
|
<route>
|
|
|
|
<service name="Block"> <child name="sd_card_drv"/> </service>
|
|
|
|
<!--<service name="Nic"> <child name="nic_bridge"/> </service>-->
|
|
|
|
<any-service> <any-child/> <parent/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
set boot_modules {
|
|
|
|
core
|
|
|
|
init
|
|
|
|
timer
|
|
|
|
nic_bridge
|
|
|
|
part_blk
|
|
|
|
l4linux
|
|
|
|
initrd.gz
|
2013-04-29 08:51:27 +00:00
|
|
|
fb_drv
|
2012-07-18 09:37:03 +00:00
|
|
|
sd_card_drv
|
2013-11-13 13:10:49 +00:00
|
|
|
gpio_drv
|
2012-07-18 09:37:03 +00:00
|
|
|
usb_drv
|
|
|
|
}
|
|
|
|
|
2013-07-01 09:22:59 +00:00
|
|
|
set uri "http://genode.org/files/l4linux/busybox-initrd-arm-20120710.gz"
|
2012-07-18 09:37:03 +00:00
|
|
|
if {![file exists bin/initrd.gz]} {
|
|
|
|
puts "Download initramfs ..."
|
|
|
|
exec >& /dev/null wget -c -O bin/initrd.gz $uri
|
|
|
|
}
|
2013-07-01 09:22:59 +00:00
|
|
|
exec >& /dev/null wget -O bin/initrd.gz.md5 $uri.md5
|
|
|
|
cd bin
|
|
|
|
exec md5sum -c initrd.gz.md5
|
|
|
|
cd ..
|
2012-07-18 09:37:03 +00:00
|
|
|
|
|
|
|
build_boot_image [join $boot_modules " "]
|
|
|
|
|