Comments (4)
I met the same issue,have you solved this?
from arm_now.
+1
from arm_now.
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.
Congrats, you found the issue 👍
What about you introduce a fix via a pull request ? :)
from arm_now.
Related Issues (20)
- can arm_now access inet? HOT 1
- Add python dependencies to README HOT 1
- Add supported OS'es to README HOT 2
- Error on Macos with the --redir option HOT 2
- add a snapshot feature HOT 1
- How can I get a bridged network interface? HOT 2
- REDIR deprecated HOT 1
- Vagrant and Packer plugins! HOT 1
- Can't Execute Binary HOT 11
- Can't start with ubuntu's latest QEMU HOT 5
- Compiling Go package on MIPS32EL for openwrt HOT 1
- How can I start esp8266 machine using arm_now HOT 2
- can not run arm_now HOT 2
- always url error , i think the network is ok HOT 1
- Using arm_now for QEMU development for Onion Omega2 HOT 1
- Missing gdb, gdbserver and empty /opt on mips32 HOT 4
- nios2 --sync doesn't seem to work HOT 3
- `--real-source` option not working because of the change of toolchains.bootlin.com
- qemu-system-ppc64: -nic: invalid option
- Resizing filesystem with --correct option fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arm_now.