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

Re: Debian "wheezy" install on Netra X1 done



On 9/8/25 03:57, Hermann.Lauer@uni-heidelberg.de wrote:
Hello Dennis,

On Thu, Sep 04, 2025 at 09:33:34PM -0400, Dennis Clarke wrote:
On 9/4/25 01:59, John Paul Adrian Glaubitz wrote:
Hello Dennis,

...
$ dpkg-deb -x linux-image-6.12.3-sparc64-smp_6.12.3-1+sparc64_sparc64.deb /target/path

Then copy the kernel over manually and run "update-initramfs -k 6.12.3-sparc64-smp -c -v


OKay .. this may work now that I have the modules in the correct location :


nix# update-initramfs -k 6.12.3-sparc64-smp -c -v
...
Now I think I need symlinks in /boot for various stuff.

As Adrian told you:
Copy vmlinux, System.map and config into /boot and the modules into /lib/modules.

Symlinking should also work, and the initrd.img should also be present.

Good luck and greetings


I have been doing this in little circles around and around for over a week. I think I have the procedure figured out.

To demonstrate :

(1) net boot with the wheezy installer and drop to a shell
    as soon as we know the disks are available

(2) with the very limited busybox we mount the old wheezy
    root and boot partitions somewhere :

BusyBox v1.20.2 (Debian 1:1.20.0-7) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # mkdir /tmp/root
~ # mount /dev/sda4 /tmp/root
~ # mount /dev/sda1 /tmp/root/boot
~ # cd /tmp/root/boot

(3) remove the symlinks left behind from the previous and
    likely failed boot attempt :

/tmp/root/boot # rm initrd.img
/tmp/root/boot # rm vmlinux

(4) look for the old wheezy stuff :

/tmp/root/boot # ls *3.2*
System.map-3.2.0-4-sparc64  initrd.img-3.2.0-4-sparc64
config-3.2.0-4-sparc64      vmlinuz-3.2.0-4-sparc64

(5) make symlinks

/tmp/root/boot # ln -s ./initrd.img-3.2.0-4-sparc64 ./initrd.img
/tmp/root/boot # ln -s ./vmlinuz-3.2.0-4-sparc64    ./vmlinuz
/tmp/root/boot #

(5) look at the silo.conf

/tmp/root/boot # cat silo.conf
root=/dev/sdb4
partition=1
default=Linux
read-only
timeout=100

image=/vmlinux
        label=Linux
        initrd=/initrd.img
/tmp/root/boot #

(6) use the only editor we have :

/tmp/root/boot # ../bin/ed silo.conf
112
1s/b4/a4/p
root=/dev/sda4
7s/x/z/p
image=/vmlinuz
f
silo.conf
w
112
q
/tmp/root/boot #

(7) look at the edited result

/tmp/root/boot # cat silo.conf
root=/dev/sda4
partition=1
default=Linux
read-only
timeout=100

image=/vmlinuz
        label=Linux
        initrd=/initrd.img
/tmp/root/boot #

(8) halt and power-off

/tmp/root/boot # halt
Sent SIGKILL to all processes
Requesting system halt
[  862.147906] System halted.
Program terminated
ok power-off

lom>

(9) go make a coffee

(10) power-on

lom>poweron
lom>
LOM event: +5h12m56s host power on
@(#) core 1.0.18 2002/05/23 18:22
Hardware Power ON
Verifying NVRAM...Done
Bootmode is 0
MCR0 = 36a0bc04
MCR1 = c0804000
MCR2 = ff0bbbb
MCR3 = 3ff
Ecache Size = 256 KB
NVRAM Test
Icache Test
Dcache Test
MMU Test
Ecache Tag Addr Test
Ecache RAM Addr Test
Clearing E$ Tags Done
Clearing I/D TLBs Done
Probing memory
Done
MEMBASE=0x60000000
MEMSIZE=0x10000000
Data Line Test
Core Memory Test
Clearing memory...including Unix retained memory...Done
Turning ON MMUs Done
Copy ROM to RAM (154720 bytes) Done
Orig PC=0x1fff0007edc  New PC=0xf0f07f34
Processor Speed=500MHz
Memory Data Line Test
Memory Addr Line w/ Ecache Test
ECC Block Memory Test
Looking for Dropin cPOST ... found
Decompressing Client Done
Transferring control to Client...

Sun Microsystems, Inc.     cPOST
@(#) cpost 1.0.18 2002/05/23 18:22

All Basic UltraSPARC IIe PBM Tests
        Init CPU PBM
        PIO Decoder And BCT Test
        CPU IOMMU Reg Test
        CPU IOMMU RAM NTA Test
        CPU IOMMU CAM NTA Test
        CPU IOMMU RAM Address Test
        CPU IOMMU CAM Address Test
        IOMMU TLB Compare Test
        IOMMU TLB Flush Test
        PBM Control/Status Reg Test
        PBM Diag Reg Test
        CPU PBM Reg Test

DM9102A Ethernet #1 Config Space Reg Test
DM9102A Ethernet #2 Config Space Reg Test
Basic SouthBridge Tests
        Southbridge ISA Config Space Reg Test
        Southbridge PMU Config Space Reg Test
        Southbridge IDE Config Space Reg Test
        Southbridge USB Config Space Reg Test
All Memory Stress Tests
        Consist Write Data Test
Resetting...

Processor Speed = [Speed Jumper = 5] 500 MHz
Baud rate is 9600
8 Data bits, 1 stop bits, no parity (configured from lom)

Firmware CORE  Sun Microsystems, Inc.
@(#) core 1.0.18 2002/05/23 18:22
Software Power ON
Verifying NVRAM...Done
Bootmode is 0
MCR0 = 36a0bc04
MCR1 = c0804000
MCR2 = ff0bbbb
MCR3 = 3ff
Ecache Size = 256 KB
Clearing E$ Tags Done
Clearing I/D TLBs Done
Probing memory
Done
MEMBASE=0x60000000
MEMSIZE=0x10000000
Clearing memory...Done
Turning ON MMUs Done
Copy ROM to RAM (154720 bytes) Done
Orig PC=0x1fff0007edc  New PC=0xf0f07f34
Processor Speed=500MHz
Looking for Dropin FVM ... found
Decompressing Client Done
Transferring control to Client...
Reset Control: BXIR:0 BPOR:0 SXIR:0 SPOR:1 POR:0
Probing upa at 1f,0 pci
Probing upa at 0,0 SUNW,UltraSPARC-IIe (256 Kb)
Loading Support Packages: kbd-translator
Loading onboard drivers:
Probing /pci@1f,0 Device 7  isa dma rtc power SUNW,lomh serial serial
   flashprom
Probing /pci@1f,0 Device 3  pmu i2c temperature dimm dimm dimm dimm
   i2c-nvram idprom motherboard-fru ppm beep fan-control
lomp
Probing Memory Bank #0 256 Megabytes
Probing Memory Bank #1 256 Megabytes
Probing Memory Bank #2 256 Megabytes
Probing Memory Bank #3 256 Megabytes
ChassisSerialNumber 51592229
Probing /pci@1f,0 Device 7
Probing /pci@1f,0 Device 3
Probing /pci@1f,0 Device c  ethernet
Probing /pci@1f,0 Device 5  ethernet
Probing /pci@1f,0 Device a  usb
Probing /pci@1f,0 Device d  ide disk cdrom
todm5819 Sun Netra X1 (UltraSPARC-IIe 500MHz), No Keyboard
OpenBoot 4.0, 1024 MB memory installed, Serial #51592229.
Ethernet address 0:3:ba:13:3c:25, Host ID: 83133c25.



Environment monitoring: disabled

ok

(11) boot the disk with the silo bootloader

ok boot /pci@1f,0/ide@d/disk@0,0:a
Boot device: /pci@1f,0/ide@d/disk@0,0:a  File and args:
SILO Version 1.4.14
boot:
Allocated 64 Megs of memory at 0x40000000 for kernel
Uncompressing image...
Loaded kernel version 3.2.78
Loading initial ramdisk (10112340 bytes at 0x6F000000 phys, 0x40C00000 virt)...
/
[    0.000000] PROMLIB: Sun IEEE Boot Prom 'OBP 4.0.18 2002/05/23 18:22'
[    0.000000] PROMLIB: Root node compatible: sun4u
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-4-sparc64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 Debian 3.2.78-1
[    0.000000] bootconsole [earlyprom0] enabled
[    0.000000] ARCH: SUN4U
[    0.000000] Ethernet address: 00:03:ba:13:3c:25
[    0.000000] Kernel: Using 2 locked TLB entries for main kernel image.
[    0.000000] Remapping the kernel... done.
[    0.000000] OF stdout device is: /pci@1f,0/isa@7/serial@0,3f8
[    0.000000] PROM: Built device tree with 46543 bytes of memory.
[    0.000000] Top of RAM: 0x6fec8000, Total RAM: 0x3fe36000
[    0.000000] Memory hole size: 768MB
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00037f64
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[7] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00008000
[    0.000000]     0: 0x00010000 -> 0x00018000
[    0.000000]     0: 0x00020000 -> 0x00028000
[    0.000000]     0: 0x00030000 -> 0x000377ff
[    0.000000]     0: 0x00037800 -> 0x00037f00
[    0.000000]     0: 0x00037f40 -> 0x00037f58
[    0.000000]     0: 0x00037f60 -> 0x00037f64
[    0.000000] Booting Linux...
[    0.000000] CPU CAPS: [flush,stbar,swap,muldiv,v9,mul32,div32,v8plus]
[    0.000000] CPU CAPS: [vis]
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129052
[    0.000000] Kernel command line: root=/dev/sda4 ro
[    0.000000] PID hash table entries: 4096 (order: 2, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 1048576 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 524288 bytes) [ 0.000000] Memory: 1012904k available (3448k kernel code, 1448k data, 192k init) [fffff80000000000,000000006fec8000]
[    0.000000] NR_IRQS:255
[    0.000000] clocksource: mult[b400012e] shift[24]
[    0.000000] clockevent: mult[16c16bf] shift[32]
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled, bootconsole disabled
[    0.000000] PROMLIB: Sun IEEE Boot Prom 'OBP 4.0.18 2002/05/23 18:22'
[    0.000000] PROMLIB: Root node compatible: sun4u
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-4-sparc64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 Debian 3.2.78-1
[    0.000000] bootconsole [earlyprom0] enabled
[    0.000000] ARCH: SUN4U
[    0.000000] Ethernet address: 00:03:ba:13:3c:25
[    0.000000] Kernel: Using 2 locked TLB entries for main kernel image.
[    0.000000] Remapping the kernel... done.
[    0.000000] OF stdout device is: /pci@1f,0/isa@7/serial@0,3f8
[    0.000000] PROM: Built device tree with 46543 bytes of memory.
[    0.000000] Top of RAM: 0x6fec8000, Total RAM: 0x3fe36000
[    0.000000] Memory hole size: 768MB
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00037f64
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[7] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00008000
[    0.000000]     0: 0x00010000 -> 0x00018000
[    0.000000]     0: 0x00020000 -> 0x00028000
[    0.000000]     0: 0x00030000 -> 0x000377ff
[    0.000000]     0: 0x00037800 -> 0x00037f00
[    0.000000]     0: 0x00037f40 -> 0x00037f58
[    0.000000]     0: 0x00037f60 -> 0x00037f64
[    0.000000] Booting Linux...
[    0.000000] CPU CAPS: [flush,stbar,swap,muldiv,v9,mul32,div32,v8plus]
[    0.000000] CPU CAPS: [vis]
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129052
[    0.000000] Kernel command line: root=/dev/sda4 ro
[    0.000000] PID hash table entries: 4096 (order: 2, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 1048576 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 524288 bytes) [ 0.000000] Memory: 1012904k available (3448k kernel code, 1448k data, 192k init) [fffff80000000000,000000006fec8000]
[    0.000000] NR_IRQS:255
[    0.000000] clocksource: mult[b400012e] shift[24]
[    0.000000] clockevent: mult[16c16bf] shift[32]
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled, bootconsole disabled
[ 185.807750] Calibrating delay using timer specific routine.. 11.13 BogoMIPS (lpj=22270)
[  185.807799] pid_max: default: 32768 minimum: 301
[  185.808035] Security Framework initialized
[  185.808096] AppArmor: AppArmor disabled by boot time parameter
[  185.808198] Mount-cache hash table entries: 512
[  185.809027] Initializing cgroup subsys cpuacct
[  185.809084] Initializing cgroup subsys memory
[  185.809176] Initializing cgroup subsys devices
[  185.809205] Initializing cgroup subsys freezer
[  185.809231] Initializing cgroup subsys net_cls
[  185.809255] Initializing cgroup subsys blkio
[  185.809322] Initializing cgroup subsys perf_event
[  185.809781] Performance events: No support for PMU type 'ultra12'
[  185.812012] devtmpfs: initialized
[  185.813492] print_constraints: dummy:
[  185.813880] NET: Registered protocol family 16
[  185.822572] /pci@1f,0: PCI IO[1fe02000000] MEM[1ff00000000]
[  185.822651] /pci@1f,0: SABRE PCI Bus Module ver[0:0]
[  185.822678] PCI: Scanning PBM /pci@1f,0
[ 185.823146] pci 0000:00:03.0: quirk: [io 0x1fe02002000-0x1fe0200203f] claimed by ali7101 ACPI [ 185.823197] pci 0000:00:03.0: quirk: [io 0x1fe02004000-0x1fe0200401f] claimed by ali7101 SMB
[  185.829527] bio: create slab <bio-0> at 0
[  185.830319] vgaarb: loaded
[  185.831486] /pci@1f,0/isa@7/rtc@0,70: RTC regs at 0x1fe02000070
[  185.832673] Switching to clocksource hbtick
[  185.853758] NET: Registered protocol family 2
[ 185.870696] IP route cache hash table entries: 8192 (order: 3, 65536 bytes) [ 185.872343] TCP established hash table entries: 32768 (order: 6, 524288 bytes)
[  185.875072] TCP bind hash table entries: 32768 (order: 5, 262144 bytes)
[  185.876510] TCP: Hash tables configured (established 32768 bind 32768)
[  185.876584] TCP reno registered
[  185.876653] UDP hash table entries: 512 (order: 1, 16384 bytes)
[  185.876898] UDP-Lite hash table entries: 512 (order: 1, 16384 bytes)
[  185.877687] NET: Registered protocol family 1
[  185.877840] pci 0000:00:07.0: Activating ISA DMA hang workarounds
[  185.933175] Unpacking initramfs...
[  187.357581] Freeing initrd memory: 9875k freed
[  187.359058] power: Control reg at 1fe02002000
[  187.361111] audit: initializing netlink socket (disabled)
[  187.361232] type=2000 audit(1.643:1): initialized
[  187.423624] HugeTLB registered 4 MB page size, pre-allocated 0 pages
[  187.425071] VFS: Disk quotas dquot_6.5.2
[  187.425279] Dquot-cache hash table entries: 1024 (order 0, 8192 bytes)
[  187.425643] msgmni has been set to 1997
[  187.426836] alg: No test for stdrng (krng)
[ 187.427081] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[  187.427159] io scheduler noop registered
[  187.427199] io scheduler deadline registered
[  187.427291] io scheduler cfq registered (default)
[  187.429235] f0076e0c: ttyS0 at MMIO 0x1fe020003f8 (irq = 7) is a 16550A
[  187.429302] Console: ttyS0 (SU)
[  193.404312] console [ttyS0] enabled
.
.
.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1
boot was not cleanly unmounted, check forced.
boot: |======================================================  - 95.7%
.
.
.
[  200.790619] EXT4-fs (sda4): recovery complete

[ 200.872805] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[ 203.801692] udevd[304]: starting version 175
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[....] Activating swap...[ 206.872669] Adding 3903784k swap on /dev/sda2. Priority:-1 extents:1 across:3903784k
done.
[  207.102827] EXT4-fs (sda4): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.20.1
root: clean, 47015/2076704 files, 498182/8305604 blocks
d[  207.750972] EXT4-fs (sda4): re-mounted. Opts: errors=remount-ro
one.
[  208.178351] loop: module loaded
[info] Loading kernel module loop.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1
boot was not cleanly unmounted, check forced.
boot: 40/977032 files (5.0% non-contiguous), 267778/1951897 blocks
fsck died with exit status 1
done.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[ ok ] Starting IPv6 Recursive DNS Server discovery Daemon: rdnssd.
[ ok ] Configuring network interfaces...done.
[ ok ] Starting rpcbind daemon....
[....] Starting NFS common utilities: statd[ 242.262041] RPC: Registered named UNIX socket transport module.
[  242.339885] RPC: Registered udp transport module.
[  242.401660] RPC: Registered tcp transport module.
[  242.463488] RPC: Registered tcp NFSv4.1 backchannel transport module.
[  242.738447] FS-Cache: Loaded
[  242.905767] FS-Cache: Netfs 'nfs' registered for caching
[  243.056059] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ ok pd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting rpcbind daemon...[....] Already running..
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting enhanced syslogd: rsyslogd.
[ ok ] Starting deferred execution scheduler: atd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting MTA: exim4.
[ ok ] Starting OpenBSD Secure Shell server: sshd.

Debian GNU/Linux 7 nix ttyS0

nix login:

Everything that should work for wheezy does in fact work.

I may as well compile a new kernel myself.


--
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken


Reply to: