Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: netwinder state?



On Mon, Nov 20, 2023 at 03:42:21 +0300, Valery Ushakov wrote:

> TL;DR: Does anyone still have a netwinder and if so, does it boot 10
> or current?
>
> I tried to boot current on mine but it seems to choke.
[...]
>   [NeTTrom] Second level jump mode
>      [FB B0=0x00000045][FB B1=0x01000045][FB B2=0x00000000][FB B3=0x00000000]
>      [Kern loc=0x01C00000]
>      [VGA_30=0x02][VGA_71=0x63][VGA_72=0x02]
>      [VGA_B2=0xDB][VGA_B3=0x54]
>   [CMD=ide0=autotune nwconsole=serial netconfig_eth0=flash eth0=212.113.112.73/27 netconfig_eth1=disk nfsroot=212.113.112.78:/export/root/fart nfsaddrs=212.113.112.73:212.113.112.78:0.0.0.0:255.255.255.224:]
>   ELF kernel recognized
>   elf_load(): [Checking section 0x00][loadable, size 0x000000A8]
>   elf_load(): [Checking section 0x01][loadable, size 0x002B0A10]
>   elf_load(): [Checking section 0x02][loadable, size 0x00092C50][zeroing]
>   load_elf() failed
>
> I have some old kernels in the old /tftpboot, and I can boot
>
>   NetBSD 4.99.20 (SERIAL_FART) #7: Mon Jun 25 06:39:33 MSD 2007
>
> to the root device prompt and I guess that
>
>   NetBSD 9.99.10 (FART) #1: Thu Aug 22 04:29:59 MSK 2019
>
> is also ok b/c I did previously boot it (old nfs server has its
> dmesg.boot) and it loads ok, but then I can't see what it does b/c
> it's a wscons kernel and I don't have a monitor hooked up, only
> serial.

I finaly had time to set things up.  The old 4.99 kernel has:

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz  MemSiz   Flg Align
  LOAD           0x000000 0x00008000 0x00008000 0x0040a8 0x0040a8 R E 0x8000
  LOAD           0x0040a8 0xf000c0a8 0x0000c0a8 0x1de2d4 0x1de2d4 R E 0x8000
  LOAD           0x1e8000 0xf01f0000 0x001f0000 0x082494 0x082494 RW  0x8000
  LOAD           0x2624a0 0xf02724a0 0xf02724a0 0x000000 0x016cc0 RW  0x8000

 Section to Segment mapping:
  Segment Sections...
   00     .start
   01     .text link_set_pools link_set_domains link_set_sysctl_funcs link_set_malloc_types link_set_vfsops link_set_evcnts link_set_dkwedge_methods link_set_bufq_strats link_set_vfs_hooks
   02     .data
   03     .bss


and boots fine:

elf_load(): [Checking section 0x00][loadable, size 0x000040A8]
elf_load(): [Checking section 0x01][loadable, size 0x001DE2D4]
elf_load(): [Checking section 0x02][loadable, size 0x00082494]
elf_load(): [Checking section 0x03][loadable, size 0x00000000][zeroing]
Initrd: scan 0x0005615D bytes @ 0x01E624A0.
Kernel entry point 0x0000C000

Press '*' TWICE to enter debug......Booting kernel...

NetBSD/netwinder booting ...
...


In contrast, the current kernel has:

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz  MemSiz   Flg Align
  LOAD           0x010000 0x00000000 0x00000000 0x0000a8 0x0000a8 R E 0x10000
  LOAD           0x01c000 0xf000c000 0xf000c000 0x2b0c28 0x2b0c28 R E 0x10000
  LOAD           0x2d0000 0xf02c0000 0xf02c0000 0x092cd0 0x0aa030 RW  0x10000

 Section to Segment mapping:
  Segment Sections...
   00     .start
   01     .text .eh_frame link_set_modules link_set_sysctl_funcs link_set_domains link_set_evcnts link_set_dkwedge_methods link_set_prop_linkpools
   02     .data .bss

elf_load(): [Checking section 0x00][loadable, size 0x000000A8]
elf_load(): [Checking section 0x01][loadable, size 0x002B0C28]
elf_load(): [Checking section 0x02][loadable, size 0x00092CD0][zeroing]
load_elf() failed


The start section is arch/netwinder/netwinder/nwmmu.S and in the good
kernel its contiguous with the rest of the kernel:

Disassembly of section .start:

0000c000 <nwstart>:
    c000:       e28f0098        add     r0, pc, #152    ; 0x98
    c004:       e5900000        ldr     r0, [r0]
...
0000c0a4 <Lstart>:
    c0a4:       f000c0a8                        ; <UNDEFINED> instruction: 0xf000c0a8

Disassembly of section .text:

f000c0a8 <kernel_text>:
f000c0a8:       e28f103c        add     r1, pc, #60     ; 0x3c
...


My linker script fu is at the cargo cult level at best.  So any advice
on how to achieve the old layout with the new linker is appreciated.

-uwe


Home | Main Index | Thread Index | Old Index