Open jklmnn opened 4 years ago
To create a bootable SD card:
uImage
file created in var/run/<name>/uImage
to the ext4 partition=> ext4load mmc 1:1 ${loadaddr} uImage
=> bootm ${loadaddr}
This should boot the Genode image. Example:
u-boot=> ext4load mmc 1:1 ${loadaddr} /uImage
875649 bytes read in 60 ms (13.9 MiB/s)
u-boot=> bootm ${loadaddr}
## Booting kernel from Legacy Image at 40480000 ...
Image Name:
Image Type: AArch64 Linux Kernel Image (gzip compressed)
Data Size: 875585 Bytes = 855.1 KiB
Load Address: 40010000
Entry Point: 40010000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
kernel initialized ROM modules: ROM: [0000000040180000,0000000040180156) config ROM: [0000000040006000,0000000040007000) core_log ROM: [0000000040146000,000000004017f090) init ROM: [0000000040181000,00000000402319e0) ld.lib.so ROM: [0000000040004000,0000000040005000) platform_info ROM: [0000000040232000,00000000402382c8) test-log
Genode 19.11-13-g63ee7aef89 3066 MiB RAM and 64533 caps assigned to init [init -> test-log] hex range: [0e00,1680) [init -> test-log] empty hex range: [0abc0000,0abc0000) (empty!) [init -> test-log] hex range to limit: [f8,ff] [init -> test-log] invalid hex range: [f8,08) (overflow!) [init -> test-log] negative hex char: 0xfe [init -> test-log] positive hex char: 0x02 [init -> test-log] floating point: 1.70 [init -> test-log] multiarg string: "parent -> child.7" [init -> test-log] String(Hex(3)): 0x3 [init -> test-log] Very long messages: [init -> test-log -> log] 1.....................................................................................................................................................................................................................................2 [init -> test-log] 3.....................................................................................................................................................................................................................................4 [init -> test-log] 5.....................................................................................................................................................................................................................................6 [init -> test-log] [init -> test-log] Test done.
To use this with the gart image, the load address has to be 0x60000000
.
Hit any key to stop autoboot: 0
23832658 bytes read in 1018 ms (22.3 MiB/s)
## Booting kernel from Legacy Image at 60000000 ...
Image Name:
Image Type: AArch64 Linux Kernel Image (gzip compressed)
Data Size: 23832594 Bytes = 22.7 MiB
Load Address: 40010000
Entry Point: 40010000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
kernel initialized
ROM modules:
ROM: [00000000437b5000,00000000437b7800) app.tar
ROM: [00000000437b8000,00000000437b88d1) config
ROM: [0000000043f89000,0000000043f8a000) core_log
ROM: [0000000043783000,0000000043795060) dalvikvm
ROM: [000000004035e000,00000000408a6800) framework.tar
ROM: [0000000042d50000,0000000043700bb0) gart_libart.lib.so
ROM: [0000000043917000,00000000439196f8) gart_libbacktrace.lib.so
ROM: [0000000040191000,00000000401a0138) gart_libbase.lib.so
ROM: [000000004391a000,000000004396b138) gart_libcore.lib.so
ROM: [0000000043975000,0000000043a67bd0) gart_libcrypto.lib.so
ROM: [000000004158f000,00000000415a02a0) gart_libcutils.lib.so
ROM: [0000000040141000,0000000040190d20) gart_libdexfile.lib.so
ROM: [00000000415a1000,00000000415d02c0) gart_libexpat.lib.so
ROM: [00000000408e0000,0000000040b51170) gart_libicui18n.lib.so
ROM: [00000000401a6000,000000004035a018) gart_libicuuc.lib.so
ROM: [0000000042d0a000,0000000042d20ca0) gart_liblog.lib.so
ROM: [0000000040b7c000,0000000040b8c8f0) gart_liblz4.lib.so
ROM: [000000004013d000,0000000040140a10) gart_libmetricslogger.lib.so
ROM: [00000000401a1000,00000000401a5c48) gart_libnativebridge.lib.so
ROM: [000000004396c000,0000000043974360) gart_libnativehelper.lib.so
ROM: [0000000043701000,000000004370d5b8) gart_libnativeloader.lib.so
ROM: [00000000408a7000,00000000408df2d8) gart_libopenjdk.lib.so
ROM: [0000000040b52000,0000000040b7be70) gart_libopenjdkjvm.lib.so
ROM: [0000000043b1e000,0000000043b205e0) gart_libsigchain.lib.so
ROM: [0000000042d36000,0000000042d4f260) gart_libutils.lib.so
ROM: [000000004035b000,000000004035d688) gart_libvndksupport.lib.so
ROM: [0000000042d21000,0000000042d35a40) gart_libz.lib.so
ROM: [0000000043796000,00000000437a3fe8) gart_libziparchive.lib.so
ROM: [00000000415dd000,0000000042cd5000) icu.tar
ROM: [000000004154d000,000000004158e550) init
ROM: [0000000043a68000,0000000043b1dc68) ld.lib.so
ROM: [0000000040b8d000,000000004153dbb0) libart.so
ROM: [00000000437b9000,0000000043916900) libc.lib.so
ROM: [0000000042cd5000,0000000042d09d80) libm.lib.so
ROM: [0000000043f87000,0000000043f88000) platform_info
ROM: [0000000043b21000,0000000043c801a8) stdcxx.lib.so
ROM: [00000000437a4000,00000000437b4cd0) timer
ROM: [000000004370e000,0000000043782420) vfs.lib.so
ROM: [00000000415d1000,00000000415dc4f8) vfs_jitterentropy.lib.so
ROM: [000000004153e000,000000004154cb28) vfs_pipe.lib.so
Genode 20.02-13-g8148320b92
3008 MiB RAM and 64533 caps assigned to init
[init -> dalvikvm] tar archive 'app.tar' local at 0x4000, size is 12288
[init -> dalvikvm] tar archive 'icu.tar' local at 0xb000000, size is 24084480
[init -> dalvikvm] tar archive 'framework.tar' local at 0xc6f8000, size is 5541888
[init -> dalvikvm] dalvikvm I 01-01 00:00:00 0 936320 parsed_options.cc:518] setting boot class path to /system/framework/core-libart.jar:/system/framework/core-oj.jar
[init -> dalvikvm] Warning: sysconf(71) not implemented
[init -> dalvikvm] Hello ART!
[init -> dalvikvm] dalvikvm I 01-01 00:00:06 0 936320 OpenjdkJvm.cc:318] System.exit called, status: 0
[init -> dalvikvm] Warning: 3 dangling allocations at allocator destruction time
[init] child "dalvikvm" exited with exit value 0
To persist the boot settings:
=> setenv bootcmd 'ext4load mmc 1:1 0x60000000 uImage; bootm 0x60000000'
=> saveenv
Building uBoot image:
tool/create_builddir arm_v8a
etc/build.conf
: