etc:users:jcmvbkbc:xtensa-linux
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| etc:users:jcmvbkbc:xtensa-linux [2011/06/20 00:16] – создано jcmvbkbc | etc:users:jcmvbkbc:xtensa-linux [2016/08/08 20:53] (current) – ↷ Page moved from users:jcmvbkbc:xtensa-linux to etc:users:jcmvbkbc:xtensa-linux kel | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Booting xtensa linux on qemu ====== | ====== Booting xtensa linux on qemu ====== | ||
| + | |||
| + | It boots: | ||
| + | |||
| + | < | ||
| + | parse_bootparam(phys_tag: | ||
| + | Linux version 2.6.29-rc7-ga0f0129-dirty (dumb@octofox.metropolis) (gcc version 4.4.5 (GCC) ) #10 Tue Jun 21 23:13:31 MSD 2011 | ||
| + | bootmem_init: | ||
| + | bootmem_init: | ||
| + | bootmem_init: | ||
| + | Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480 | ||
| + | Kernel command line: console=ttyS0, | ||
| + | trap_init: | ||
| + | PID hash table entries: 512 (order: 9, 2048 bytes) | ||
| + | time_init: Platform Calibrating CPU frequency | ||
| + | |||
| + | __platform_calibrate_ccount: | ||
| + | __platform_calibrate_ccount: | ||
| + | time_init: ccount_per_jiffy: | ||
| + | console [ttyS0] enabled | ||
| + | Console: colour dummy device 80x25 | ||
| + | Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) | ||
| + | Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) | ||
| + | Memory: 128380k/ | ||
| + | SLUB: Genslabs=12, | ||
| + | calibrate_delay: | ||
| + | Mount-cache hash table entries: 512 | ||
| + | net_namespace: | ||
| + | NET: Registered protocol family 16 | ||
| + | bio: create slab < | ||
| + | NET: Registered protocol family 2 | ||
| + | IP route cache hash table entries: 1024 (order: 0, 4096 bytes) | ||
| + | TCP established hash table entries: 4096 (order: 3, 32768 bytes) | ||
| + | TCP bind hash table entries: 4096 (order: 2, 16384 bytes) | ||
| + | TCP: Hash tables configured (established 4096 bind 4096) | ||
| + | TCP reno registered | ||
| + | NET: Registered protocol family 1 | ||
| + | simdisk_init: | ||
| + | simdisk_attach(dev: | ||
| + | simdisk_attach: | ||
| + | simdisk_attach(dev: | ||
| + | simdisk_attach: | ||
| + | msgmni has been set to 251 | ||
| + | io scheduler noop registered (default) | ||
| + | loop: module loaded | ||
| + | Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60 sec (nowayout= 1) | ||
| + | TCP cubic registered | ||
| + | NET: Registered protocol family 17 | ||
| + | ISS serial driver 0.1 | ||
| + | VFS: Mounted root (ext2 filesystem) readonly on device 240:0. | ||
| + | free_initmem: | ||
| + | EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended | ||
| + | Starting portmap: done | ||
| + | Initializing random number generator... done. | ||
| + | Starting network... | ||
| + | ip: RTNETLINK answers: File exists | ||
| + | |||
| + | |||
| + | |||
| + | Welcome to your custom Xtensa processor based uClibc environment. | ||
| + | uclibc login: | ||
| + | </ | ||
| ===== Issues ===== | ===== Issues ===== | ||
| Line 41: | Line 102: | ||
| </ | </ | ||
| + | Looks like bug in linker. Cured by the following patch: | ||
| + | |||
| + | < | ||
| + | diff --git a/ | ||
| + | index 0cb1530..e7b2263 100644 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -774,7 +774,9 @@ _kernel_exception: | ||
| + | # | ||
| + | |||
| + | l32i a3, a1, PT_PS # a3 = ptregs-> | ||
| + | - | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | rsil a2, XCHAL_EXCM_LEVEL | ||
| + | retw # rotate back by 4 registers, possibly with underflow | ||
| + | # Back out our _entry Frame above... | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Random symbols appear like being typed on the console ==== | ||
| + | There' | ||
| + | |||
| + | < | ||
| + | diff --git a/ | ||
| + | index e650152..285744e 100644 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -126,10 +126,11 @@ static void rs_poll(unsigned long priv) | ||
| + | |||
| + | spin_lock(& | ||
| + | |||
| + | - while (__simc(SYS_select_one, | ||
| + | - | ||
| + | - | ||
| + | - i++; | ||
| + | + while (__simc(SYS_select_one, | ||
| + | + if (__simc (SYS_read, 0, (unsigned long)& | ||
| + | + | ||
| + | + i++; | ||
| + | + } | ||
| + | } | ||
| + | |||
| + | if (i) | ||
| + | </ | ||
| + | |||
| + | ==== Console is tooooo slooooow ==== | ||
| + | There' | ||
| + | |||
| + | < | ||
| + | diff --git a/ | ||
| + | index e650152..285744e 100644 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -35,7 +35,7 @@ | ||
| + | # | ||
| + | |||
| + | # | ||
| + | -#define SERIAL_TIMER_VALUE (20 * HZ) | ||
| + | +#define SERIAL_TIMER_VALUE (HZ / 10) | ||
| + | |||
| + | | ||
| + | | ||
| + | </ | ||
etc/users/jcmvbkbc/xtensa-linux.1308514605.txt.gz · Last modified: 2011/06/20 00:16 (external edit)