Coder Social home page Coder Social logo

mips64-n32 failed to start about arm_now HOT 4 OPEN

nongiach avatar nongiach commented on May 20, 2024
mips64-n32 failed to start

from arm_now.

Comments (4)

mingfure avatar mingfure commented on May 20, 2024

I met the same issue,have you solved this?

from arm_now.

dcommander avatar dcommander commented on May 20, 2024

+1

from arm_now.

enkiusz avatar enkiusz commented on May 20, 2024

The kernel file downloaded by the script from https://github.com/nongiach/arm_now_templates/blob/master/mips64-n32.tar.xz is an empty file:

(default) ➜  _M4000_SIP_F7.20A.258.119.cmp.extracted wget https://github.com/nongiach/arm_now_templates/blob/master/mips64-n32.tar.xz\?raw\=true
--2020-09-25 11:07:43--  https://github.com/nongiach/arm_now_templates/blob/master/mips64-n32.tar.xz?raw=true
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/nongiach/arm_now_templates/raw/master/mips64-n32.tar.xz [following]
--2020-09-25 11:07:43--  https://github.com/nongiach/arm_now_templates/raw/master/mips64-n32.tar.xz
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/nongiach/arm_now_templates/master/mips64-n32.tar.xz [following]
--2020-09-25 11:07:43--  https://raw.githubusercontent.com/nongiach/arm_now_templates/master/mips64-n32.tar.xz
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1467500 (1.4M) [application/octet-stream]
Saving to: 'mips64-n32.tar.xz?raw=true'

mips64-n32.tar.xz?raw=true                 100%[========================================================================================>]   1.40M  5.48MB/s    in 0.3s

2020-09-25 11:07:43 (5.48 MB/s) - 'mips64-n32.tar.xz?raw=true' saved [1467500/1467500]

(default) ➜  _M4000_SIP_F7.20A.258.119.cmp.extracted mv mips64-n32.tar.xz\?raw=true mips64-n32.tar.xz
(default) ➜  _M4000_SIP_F7.20A.258.119.cmp.extracted tar -xJvf mips64-n32.tar.xz
arm_now/
arm_now/rootfs.ext2
arm_now/kernel
arm_now/arch
(default) ➜  _M4000_SIP_F7.20A.258.119.cmp.extracted ls -lh arm_now
total 101M
-rw-r--r-- 1 enki enki   10 Jun  3  2018 arch
-rw-r--r-- 1 enki enki    0 Jun  3  2018 kernel
-rw-r--r-- 1 enki enki 100M Jun  3  2018 rootfs.ext2
(default) ➜  _M4000_SIP_F7.20A.258.119.cmp.extracted

When you specify --real-source it downloads the proper kernel from bootlin:

(default) ➜  _M4000_SIP_F7.20A.258.119.cmp.extracted arm_now install --real-source mips64-n32
Scrawling kernel for arch 'mips64-n32'
Kernel=https://toolchains.bootlin.com/downloads/releases/toolchains/mips64-n32/test-system/mips64-n32--glibc--stable-2020.02-2-vmlinux, DTB=None, rootfs=https://toolchains.bootlin.com/downloads/releases/toolchains/mips64-n32/test-system/mips64-n32--glibc--stable-2020.02-2-rootfs.ext2

Downloading arm_now/kernel from https://toolchains.bootlin.com/downloads/releases/toolchains/mips64-n32/test-system/mips64-n32--glibc--stable-2020.02-2-vmlinux
 [*] 8.2 MB / 8.2 MB @ 2.6 MB/s [##################] [100%, 0s left]

Downloading arm_now/rootfs.ext2 from https://toolchains.bootlin.com/downloads/releases/toolchains/mips64-n32/test-system/mips64-n32--glibc--stable-2020.02-2-rootfs.ext2
 [*] 60.0 MB / 60.0 MB @ 1.8 MB/s [##################] [100%, 0s left]
[+] Installed
(default) ➜  _M4000_SIP_F7.20A.258.119.cmp.extracted ls -lh arm_now
total 69M
-rw-rw-r-- 1 enki enki   10 Sep 25 11:09 arch
-rw-rw-r-- 1 enki enki 8.2M Sep 25 11:08 kernel
-rw-rw-r-- 1 enki enki  60M Sep 25 11:09 rootfs.ext2

and boots correctly:

(default) ➜  _M4000_SIP_F7.20A.258.119.cmp.extracted arm_now start mips64-n32
WARNING: arm_now/ already exists, use --clean to restart with a fresh filesystem
Tempdir /tmp/tmpm636kpn5
File not found by ext2_lookup
WARNING: e2rm file already suppressed
Starting qemu-system-mips64
stty intr ^]
       export QEMU_AUDIO_DRV="none"
       qemu-system-mips64 -kernel arm_now/kernel -hda arm_now/rootfs.ext2 -append 'root=/dev/hda console=ttyS0 rw physmap.enabled=0 noapic'                -m 256M                -nographic                -serial stdio -monitor null  -nic user                                 -no-reboot
       stty intr ^c

WARNING: Image format was not specified for 'arm_now/rootfs.ext2' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
Linux version 4.19.91 (root@runner-37d48167-project-3290221-concurrent-2) (gcc version 8.4.0 (Buildroot 2020.02-00011-g7ea8a52)) #1 SMP Sat Apr 4 23:30:09 UTC 2020
earlycon: uart8250 at I/O port 0x3f8 (options '38400n8')

[...]

Saving random seed: random: dd: uninitialized urandom read (512 bytes read)
OK
pcnet32 0000:00:0b.0 eth0: link up
press ctrl+] to kill qemu

Welcome to arm_now
buildroot login: root
# uname -m
mips64

The https://github.com/nongiach/arm_now_templates/blob/master/mips64-n32.tar.xz should be rebuilt to properly fix this.

from arm_now.

SakiiR avatar SakiiR commented on May 20, 2024

Congrats, you found the issue 👍

What about you introduce a fix via a pull request ? :)

from arm_now.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.