Open Source & Linux Lab

It's better when it's simple

User Tools

Site Tools


etc:users:jcmvbkbc:xtensa-linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
etc:users:jcmvbkbc:xtensa-linux [2011/06/20 03:49] – boot log jcmvbkbcusers:jcmvbkbc:xtensa-linux [2016/08/07 00:34] – ↷ Page moved from user:jcmvbkbc:xtensa-linux to users:jcmvbkbc:xtensa-linux kel
Line 5: Line 5:
 <file> <file>
 parse_bootparam(phys_tag:fe000020):  parse_bootparam(phys_tag:fe000020): 
-Linux version 2.6.29-rc7-ga0f0129-dirty (dumb@octofox.metropolis) (gcc version 4.4.5 (GCC) ) #7 Mon Jun 20 01:45:39 MSD 2011+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: sysmem.bank[i:0].{type:0, start:0x1000, end:0x3000} bootmem_init: sysmem.bank[i:0].{type:0, start:0x1000, end:0x3000}
 bootmem_init: sysmem.bank[i:1].{type:0, start:0x142000, end:0x8000000} bootmem_init: sysmem.bank[i:1].{type:0, start:0x142000, end:0x8000000}
 bootmem_init: min_low_pfn:0x1, max_low_pfn:0x8000, max_pfn:0x8000 bootmem_init: min_low_pfn:0x1, max_low_pfn:0x8000, max_pfn:0x8000
 Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32480 Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32480
-Kernel command line: console=ttyS0,38400 root=/dev/simdisk0+Kernel command line: console=ttyS0,38400 root=/dev/simdisk0 init=/init
 trap_init: trap_init:
 PID hash table entries: 512 (order: 9, 2048 bytes) PID hash table entries: 512 (order: 9, 2048 bytes)
Line 50: Line 50:
 VFS: Mounted root (ext2 filesystem) readonly on device 240:0. VFS: Mounted root (ext2 filesystem) readonly on device 240:0.
 free_initmem: Freeing unused/init kernel memory: ... 48k freed free_initmem: Freeing unused/init kernel memory: ... 48k freed
-Warningunable to open an initial console. +EXT2-fs warningmounting unchecked fs, running e2fsck is recommended 
-Kernel panic - not syncingNo init found Try passing init= option to kernel.+Starting portmapdone 
 +Initializing random number generator... done. 
 +Starting network... 
 +ip: RTNETLINK answers: File exists 
 + 
 + 
 + 
 +Welcome to your custom Xtensa processor based uClibc environment. 
 +uclibc login:
 </file> </file>
  
Line 112: Line 120:
         retw                            # rotate back by 4 registers, possibly with underflow         retw                            # rotate back by 4 registers, possibly with underflow
                                         # Back out our _entry Frame above...                                         # Back out our _entry Frame above...
 +</code>
 +
 +
 +==== Random symbols appear like being typed on the console ====
 +There's no checks for select simcall error status (or maybe there just should not be EINTR error, that's just not documented). Fix is the following:
 +
 +<code>
 +diff --git a/arch/xtensa/platforms/iss/console.c b/arch/xtensa/platforms/iss/console.c
 +index e650152..285744e 100644
 +--- a/arch/xtensa/platforms/iss/console.c
 ++++ b/arch/xtensa/platforms/iss/console.c
 +@@ -126,10 +126,11 @@ static void rs_poll(unsigned long priv)
 + 
 +        spin_lock(&timer_lock);
 + 
 +-       while (__simc(SYS_select_one, 0, XTISS_SELECT_ONE_READ, (int)&tv,0,0)){
 +-               __simc (SYS_read, 0, (unsigned long)&c, 1, 0, 0);
 +-               tty_insert_flip_char(tty, c, TTY_NORMAL);
 +-               i++;
 ++       while (__simc(SYS_select_one, 0, XTISS_SELECT_ONE_READ, (int)&tv,0,0) > 0) {
 ++               if (__simc (SYS_read, 0, (unsigned long)&c, 1, 0, 0) == 1) {
 ++                       tty_insert_flip_char(tty, c, TTY_NORMAL);
 ++                       i++;
 ++               }
 +        }
 + 
 +        if (i)
 +</code>
 +
 +==== Console is tooooo slooooow ====
 +There's polling timer, it's 20 seconds :(). Fix is the following:
 +
 +<code>
 +diff --git a/arch/xtensa/platforms/iss/console.c b/arch/xtensa/platforms/iss/console.c
 +index e650152..285744e 100644
 +--- a/arch/xtensa/platforms/iss/console.c
 ++++ b/arch/xtensa/platforms/iss/console.c
 +@@ -35,7 +35,7 @@
 + #endif
 + 
 + #define SERIAL_MAX_NUM_LINES 1
 +-#define SERIAL_TIMER_VALUE (20 * HZ)
 ++#define SERIAL_TIMER_VALUE (HZ / 10)
 + 
 + static struct tty_driver *serial_driver;
 + static struct timer_list serial_timer;
 </code> </code>
etc/users/jcmvbkbc/xtensa-linux.txt · Last modified: 2016/08/08 20:53 by kel