Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #922104
| From | Karsten Merker <merker@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#908161: Please enable building a riscv64 kernel image |
| Date | 2018-10-11 21:50 +0200 |
| Message-ID | <wHP85-6H-3@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <wvPZU-8tf-3@gated-at.bofh.it> <wvTTP-2fT-9@gated-at.bofh.it> <wztxM-5Uh-15@gated-at.bofh.it> <wv8Lf-823-3@gated-at.bofh.it> <wztxM-5Uh-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
[Multipart message — attachments visible in raw view] - view raw
Control: tags 908161 + patch On Tue, Sep 18, 2018 at 08:57:01PM +0200, Karsten Merker wrote: > On Sat, Sep 08, 2018 at 11:15:36PM +0100, Ben Hutchings wrote: > > [Building a linux-image-*-riscv64 binary package] > > > The addition of riscv will have to wait until it has support > > for an initramfs. > > > > Is this commit sufficient to make booting with an initramfs work: > > > > commit cdc7274029ca5984350a057a2399aaa340d3be2d > > Author: Guenter Roeck <linux@roeck-us.net> > > Date: Tue Aug 28 17:33:46 2018 -0700 > > > > riscv: Do not overwrite initrd_start and initrd_end > > > > or are more changes needed? > > Hello, > > just a short status update: the aforementioned patch has been > included in the upstream 4.19-rc4 release and I can confirm > that the initramfs support for riscv64 works with 4.19-rc4. > > The other major issue in this bug (unversioned symbols breaking > the package build) is still unresolved; I'll report back as soon > as I have received feedback from the upstream RISC-V architecture > maintainer. Hello, all previously mentioned issues have been addressed in the meantime: - The broken initrd support has been fixed upstream in kernel 4.19-rc4. - The symbol version issue has been fixed upstream in kernel 4.19-rc6. - The riscv64 kernel config has been modularized as far as possible and all redundant entries have been removed. - Headings have been added to the kernel config. Attached is a new patch, alternatively it is available as a merge request on salsa as suggested earlier in the discussion: https://salsa.debian.org/kernel-team/linux/merge_requests/66 The resulting kernel has been successfully tested on a qemu "virt" board: [ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [ 0.000000] Linux version 4.19.0-rc7-riscv64 (debian-kernel@lists.debian.org) (gcc version 8.2.0 (Debian 8.2.0-7)) #1 SMP Debian 4.19~rc7-1~exp2 (2018-10-08) [ 0.000000] bootconsole [early0] enabled [ 0.000000] Initial ramdisk at: 0x(____ptrval____) (43521258 bytes) [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] Normal [mem 0x0000000100000000-0x00002fffffffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080200000-0x00000002ffffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000002ffffffff] [ 0.000000] On node 0 totalpages: 2620928 [ 0.000000] DMA32 zone: 8184 pages used for memmap [ 0.000000] DMA32 zone: 0 pages reserved [ 0.000000] DMA32 zone: 523776 pages, LIFO batch:63 [ 0.000000] Normal zone: 32768 pages used for memmap [ 0.000000] Normal zone: 2097152 pages, LIFO batch:63 [ 0.000000] software IO TLB: mapped [mem 0xfbfff000-0xfffff000] (64MB) [ 0.000000] elf_hwcap is 0x112d [ 0.000000] percpu: Embedded 19 pages/cpu @(____ptrval____) s39384 r8192 d30248 u77824 [ 0.000000] pcpu-alloc: s39384 r8192 d30248 u77824 alloc=19*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2579976 [ 0.000000] Kernel command line: console=ttyS0 ro root=/dev/vda [ 0.000000] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes) [ 0.000000] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes) [ 0.000000] Sorting __ex_table... [ 0.000000] Memory: 10178016K/10483712K available (4955K kernel code, 504K rwdata, 1633K rodata, 446K init, 934K bss, 305696K reserved, 0K cma-reserved) [ 0.000000] random: get_random_u64 called from __kmem_cache_create+0x46/0x55c with crng_init=0 [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 21055 entries in 83 pages [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0 [ 0.000000] plic: mapped 10 interrupts to 4 (out of 8) handlers. [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns [ 0.004000] Console: colour dummy device 80x25 [ 0.008000] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000) [ 0.012000] pid_max: default: 32768 minimum: 301 [ 0.016000] Security Framework initialized [ 0.016000] Yama: disabled by default; enable with sysctl kernel.yama.* [ 0.020000] AppArmor: AppArmor initialized [ 0.024000] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes) [ 0.028000] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes) [ 0.072000] rcu: Hierarchical SRCU implementation. [ 0.092000] smp: Bringing up secondary CPUs ... [ 0.112000] smp: Brought up 1 node, 4 CPUs [ 0.160000] devtmpfs: initialized [ 0.176000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.180000] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.188000] NET: Registered protocol family 16 [ 0.192000] audit: initializing netlink subsys (disabled) [ 0.196000] audit: type=2000 audit(0.192:1): state=initialized audit_enabled=0 res=1 [ 0.244000] vgaarb: loaded [ 0.244000] pps_core: LinuxPPS API ver. 1 registered [ 0.244000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.248000] PTP clock support registered [ 0.264000] clocksource: Switched to clocksource riscv_clocksource [ 0.368000] VFS: Disk quotas dquot_6.6.0 [ 0.368000] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.376000] AppArmor: AppArmor Filesystem Enabled [ 0.464000] NET: Registered protocol family 2 [ 0.476000] tcp_listen_portaddr_hash hash table entries: 8192 (order: 5, 131072 bytes) [ 0.476000] TCP established hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.476000] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes) [ 0.480000] TCP: Hash tables configured (established 131072 bind 65536) [ 0.480000] UDP hash table entries: 8192 (order: 6, 262144 bytes) [ 0.484000] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes) [ 0.488000] NET: Registered protocol family 1 [ 0.488000] PCI: CLS 0 bytes, default 64 [ 0.496000] Unpacking initramfs... [ 6.288000] Initialise system trusted keyrings [ 6.292000] workingset: timestamp_bits=46 max_order=22 bucket_order=0 [ 6.320000] zbud: loaded [ 7.464000] Key type asymmetric registered [ 7.464000] Asymmetric key parser 'x509' registered [ 7.468000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 7.468000] io scheduler noop registered [ 7.472000] io scheduler deadline registered [ 7.472000] io scheduler cfq registered (default) [ 7.472000] io scheduler mq-deadline registered [ 7.492000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 7.508000] console [ttyS0] disabled [ 7.508000] 10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 10, base_baud = 230400) is a 16550A [ 7.552000] console [ttyS0] enabled [ 7.556000] mousedev: PS/2 mouse device common for all mice [ 7.560000] ledtrig-cpu: registered to indicate activity on CPUs [ 7.568000] NET: Registered protocol family 10 [ 7.788000] Segment Routing with IPv6 [ 7.788000] mip6: Mobile IPv6 [ 7.792000] NET: Registered protocol family 17 [ 7.792000] mpls_gso: MPLS GSO support [ 7.800000] bootconsole [early0] uses init memory and must be disabled even before the real one is ready [ 7.800000] bootconsole [early0] disabled [ 7.804000] registered taskstats version 1 [ 7.804000] Loading compiled-in X.509 certificates [ 7.972000] Loaded X.509 cert 'secure-boot-test-key-lfaraone: 97c1b25cddf9873ca78a58f3d73bf727d2cf78ff' [ 7.976000] zswap: loaded using pool lzo/zbud [ 7.980000] AppArmor: AppArmor sha1 policy hashing enabled [ 7.980000] hctosys: unable to open rtc device (rtc0) [ 8.928000] Freeing unused kernel memory: 444K [ 8.928000] This architecture does not have kernel memory protection. [ 8.928000] Run /init as init process [ 11.472000] virtio_blk virtio1: [vda] 419430400 512-byte logical blocks (215 GB/200 GiB) [ 13.768000] EXT4-fs (vda): mounted filesystem with ordered data mode. Opts: (null) [ 18.532000] random: fast init done [ 27.072000] random: crng init done [ 32.004000] EXT4-fs (vda): re-mounted. Opts: (null) Regards, Karsten -- Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der Werbung sowie der Markt- oder Meinungsforschung.
Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread
Bug#908161: Please enable building a riscv64 kernel image Karsten Merker <merker@debian.org> - 2018-10-11 21:50 +0200
csiph-web