Re: STX7105(NEXTVOD) not booting
Valery Ushakov <[email protected]> Sat, 27 Apr 2024 14:48:28 +0300
| Newsgroups | gmane.os.netbsd.ports.sh3 |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Apr 27, 2024 at 16:08:23 +0800, Rui-Xiang Guo wrote: > NetBSD 10.0 (NEXTVOD) #0: Sat Apr 27 13:05:38 CST 2024 > text data bss dec hex filename > 1874759 405144 90464 2370367 242b3f netbsd > /home/rxg/10.0/usr/src/../tool.evbsh3/bin/shle--netbsdelf-dbsym netbsd > # image NEXTVOD/netbsd.img > # u-boot NEXTVOD/netbsd.ub > image type: uimg > magic: 0x27051956 > time: Sat Apr 27 13:05:41 2024 > size: 2345496 > load addr: 0x80000000 > entry point: 0x80000040 > data crc: 0x954e5317 > os: 2 (netbsd) > arch: 9 (sh) > type: 2 (kernel) > comp: 0 (none) > name: Test 2024-04-27 13:05 > header crc: 0xbbef501a > ===> Kernels built from NEXTVOD: > /home/rxg/10.0/usr/src/../obj.evbsh3/sys/arch/evbsh3/compile/NEXTVOD/netbsd > ===> build.sh ended: Sat Apr 27 13:05:41 CST 2024 > ===> Summary of results: > build.sh command: ./build.sh -U -u -O ../obj.evbsh3 -T ../tool.evbsh3 -j2 -m evbsh3 -a sh3el kernel=NEXTVOD > > Then trying to load it from u-boot: > PDK7105> fatload usb 0:1 80000000 netbsd.ub > reading netbsd.ub > ..................................................................................................................................................................................................................................... > > 2345560 bytes read > PDK7105> bootm 80000000 > ## Booting image at 80000000 ... > Image Name: Test 2024-04-27 13:05 > Image Type: SuperH NetBSD Kernel Image (uncompressed) > Data Size: 2345496 Bytes = 2.2 MiB > Load Address: 80000000 > Entry Point: 80000040 > Verifying Checksum ... OK > XIP Kernel Image ... OK > ## Transferring control to NetBSD stage-2 loader (at address 80000040) ... > > It gets stuck here. Looks like the sh3 boot code does not support STX7105 well. > Or maybe I am missing something? NEXTVOD config says at the very top it's work in progress and not even expected to compile :) Seriously so, I did spent some time on NEXTVOD during the early months of lockdown but didn't get too far. NEXTVOD runs in the new "space enhanced" 32-bit mode by default, using PMB, but NetBSD sh3 ports only do 29-bit mode (fixed mappings for P0 &c). Writing a new pmap that uses 32-bit physical space requires time and effort. We don't have many people using (not to mention working on) sh3, given how the hardware is a bit exotic and not easy to come by. A palliative solution would be to use a verion of firmware that doesn't switch to the 32-bit SE mode (limiting physical memory to 512MB) or to do the mode switch song and dance early in the kernel (I don't remember if NetBSD ever wants anything from the firmware once it booted). At least the device drivers can be worked on in that setup. -uwe