2024年4月時点で最新の Linux-6.8.3 カーネルがSH7706(SH3)を公開します。

カーネル差分は linux-6.8.3-shmin-1.patchです。
Linuxカーネル本体のソースアーカイブは linux-6.8.3.tar.xzです。

Linuxカーネル本体のソースアーカイブを展開して、差分パッチファイルを配置したあとにフォルダ内に入り、パッチファイルを当ててから、設定を読込・保存してから、カーネル構築をします。

Linux-6.4.4 以降に割り込み番号が16ずつ繰り上がったため、AX88796BLFのIRQ番号を34番から50番に変更しました。

カーネル構築方法は、Linux-5.11.1カーネル差分公開の記事と同じやり方です。

ルートファイルシステムは、最新カーネルに合わせて、最新のBusyBoxを使って構築すべきですが、とりあえず動かすには昔のLInux2.x用のルートファイルシステムでも安定して動作します。

SH7706でのLInux6.8.3のブート画面は以下のとおりです。

Linux version 6.8.3 (general@general-MINIPC-PN51-S1) (sh-multilib-linux-gnu-gcc (crosstool-NG 1.25.0_rc1) 10.3.0, GNU ld (crosstool-NG 1.25.0_rc1) 2.38) #1 PREEMPT Mon Apr 8 04:18:02 JST 2024
Boot params:
… MOUNT_ROOT_RDONLY – 00000001
… RAMDISK_FLAGS – 0000c000
… ORIG_ROOT_DEV – 00000200
… LOADER_TYPE – 00000001
… INITRD_START – 0105bb00
… INITRD_SIZE – 0002dfe2
Memory limited to 32MB
Booting machvec: SHMIN
initrd must be page aligned
initrd disabled
Zone ranges:
Normal [mem 0x000000000c000000-0x000000000dffffff]
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x000000000c000000-0x000000000dffffff]
Initmem setup node 0 [mem 0x000000000c000000-0x000000000dffffff]
SHMIN Setup…
This is SH7706LAN board Ver 2.0
done.
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Kernel command line: mem=32M console=ttySC1,115200 root=/dev/shmmc2
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
Sorting __ex_table…
Built 1 zonelists, mobility grouping on. Total pages: 8128
mem auto-init: stack:off, heap alloc:off, heap free:off
I-cache : n_ways=4 n_sets=256 way_incr=4096
I-cache : entry_mask=0x00000ff0 alias_mask=0x00000000 n_aliases=0
D-cache : n_ways=4 n_sets=256 way_incr=4096
D-cache : entry_mask=0x00000ff0 alias_mask=0x00000000 n_aliases=0
virtual kernel memory layout:
fixmap : 0xdfff7000 – 0xdffff000 ( 32 kB)
vmalloc : 0xc0000000 – 0xdfff5000 ( 511 MB)
lowmem : 0x8c000000 – 0x8e000000 ( 32 MB) (cached)
: 0xa0000000 – 0xc0000000 ( 512 MB) (uncached)
.init : 0x8c461000 – 0x8c482000 ( 132 kB)
.data : 0x8c318e50 – 0x8c460020 (1308 kB)
.text : 0x8c001000 – 0x8c318e50 (3167 kB)
Memory: 27740K/32768K available (3163K kernel code, 248K rwdata, 1056K rodata, 132K init, 80K bss, 5024K reserved, 0K cma-reserved)
SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
rcu: Preemptible hierarchical RCU implementation.
rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
intc: Registered controller ‘sh770x’ with 23 IRQs
intc: Registered controller ‘sh3-irq45’ with 2 IRQs
intc: Registered controller ‘sh3-irq0123’ with 4 IRQs
rcu: srcu_init: Setting srcu_struct sizes based on contention.
Console: colour dummy device 80×25
sh-tmu-sh3.0: ch0: used for clock events
sh-tmu-sh3.0: ch0: used for periodic clock events
sh-tmu-sh3.0: ch1: used as clock source
clocksource: sh-tmu-sh3.0: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126044627 ns
sched_clock: 32 bits at 1000 Hz, resolution 1000000ns, wraps every 2147483647500000ns
Calibrating delay loop (skipped)… 120.00 BogoMIPS PRESET (lpj=60000)
CPU: SH7706
pid_max: default: 4096 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
rcu: Hierarchical SRCU implementation.
rcu: Max phase no-delay instances is 400.
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
futex hash table entries: 16 (order: -5, 192 bytes, linear)
NET: Registered PF_NETLINK/PF_ROUTE protocol family
DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
sh_tmu sh-tmu-sh3.0: kept as earlytimer
clocksource: Switched to clocksource sh-tmu-sh3.0
sh_tmu sh-tmu-sh3.0: ch0: used for oneshot clock events
NET: Registered PF_INET protocol family
IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
NET: Registered PF_UNIX/PF_LOCAL protocol family
workingset: timestamp_bits=30 max_order=13 bucket_order=0
io scheduler mq-deadline registered
io scheduler kyber registered
random: crng init done
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xb0020000 (irq = 51, base_baud = 1562500) is a TI16750
serial8250.0: ttyS1 at MMIO 0xb0040000 (irq = 51, base_baud = 1562500) is a TI16750
SuperH (H)SCI(F) driver initialized
sh-sci.0: ttySC0 at MMIO 0xfffffe80 (irq = 39, base_baud = 0) is a sci
sh-sci.1: ttySC1 at MMIO 0xa4000150 (irq = 72, base_baud = 0) is a scif
printk: legacy console [ttySC1] enabled
brd: module loaded
loop: module loaded
slram: not enough parameters.
ASIX AX88796B Ethernet Adapter:v2.1.0
6 http://www.asix.com.tw
AX88796B: mac address 00:18:5f:00:55:02
AX88796B: found at 0xb0000000, using IRQ 50.
mousedev: PS/2 mouse device common for all mice
sh-rtc sh-rtc: error -ENXIO: IRQ index 1 not found
sh-rtc sh-rtc: error -ENXIO: IRQ index 2 not found
sh-rtc sh-rtc: registered as rtc0
sh-rtc sh-rtc: setting system clock to 2024-04-10T11:40:13 UTC (1712749213)
IR JVC protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR Sony protocol handler initialized
IR XMP protocol handler initialized
NET: Registered PF_PACKET protocol family
NET: Registered PF_KEY protocol family
rc 254
shmmc: MMC Reset OK.
shmmc: SDHC Card
Media size is 15523840
blk_queue_max_hw_sectors: set to minimum 8
shmmc: shmmc1 shmmc2
EXT4-fs (shmmc2): orphan cleanup on readonly fs
EXT4-fs (shmmc2): mounted filesystem 839587e0-308f-44d3-8f8c-ed58365ecf16 ro with ordered data mode. Quota mode: disabled.
VFS: Mounted root (ext4 filesystem) readonly on device 254:2.
devtmpfs: mounted
Freeing unused kernel image (initmem) memory: 132K
This architecture does not have kernel memory protection.
Run /sbin/init as init process
with arguments:
/sbin/init
with environment:
HOME=/
TERM=linux
process ‘/bin/busybox’ started with executable stack
EXT4-fs (shmmc2): re-mounted 839587e0-308f-44d3-8f8c-ed58365ecf16 r/w. Quota mode: disabled.
EXT4-fs (ram1): mounting ext2 file system using the ext4 subsystem
EXT4-fs (ram1): mounted filesystem 6217c437-3dfb-43f7-89e0-1ceabf134d9b r/w without journal. Quota mode: disabled.
ext2 filesystem being mounted at /tmp supports timestamps until 2038-01-19 (0x7fffffff)
EXT4-fs (ram2): mounting ext2 file system using the ext4 subsystem
EXT4-fs (ram2): mounted filesystem 017c8e15-a53b-41cd-8944-ee23781aee7d r/w without journal. Quota mode: disabled.
ext2 filesystem being mounted at /mnt supports timestamps until 2038-01-19 (0x7fffffff)
EXT4-fs (ram2): unmounting filesystem 017c8e15-a53b-41cd-8944-ee23781aee7d.
EXT4-fs (ram2): mounting ext2 file system using the ext4 subsystem
EXT4-fs (ram2): mounted filesystem 017c8e15-a53b-41cd-8944-ee23781aee7d r/w without journal. Quota mode: disabled.
ext2 filesystem being mounted at /dev supports timestamps until 2038-01-19 (0x7fffffff)

ファイルシステムがLinux2.xのままのため、ワーニングメッセージが出ています。