firmadyne / console Goto Github PK
View Code? Open in Web Editor NEWSerial console application (deprecated)
License: MIT License
Serial console application (deprecated)
License: MIT License
I am trying to get command-line access to a firmware that I am running using firmadyne. The process I am following is:
# Using firmware-mod-kit
./extract-firmware.sh FW_RT_N15U_30043763754.trx
mkdir FW_RT_N15U_30043763754/rootfs/firmadyne
mknod -m 666 FW_RT_N15U_30043763754/rootfs/firmadyne/ttyS1 c 4 65
cp console FW_RT_N15U_30043763754/rootfs/firmadyne/console
# Using firmware-mod-kit
./build-firmware.sh FW_RT_N15U_30043763754
When I try to run the firmware it fails to start and in qemu.initial.serial.log
I find:
"Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)"
I saw the FAQ on the main firmadyne README that mentioned an issue with kpartx
and to try increasing the timeout in inferNetwork.sh
and deleting the scratch directory but neither seemed to resolve the issue.
Is this the correct process for setting up the console?
Also of note, if I extract the firmware and re-build it again using the firmware-mod-kit, omiting the modification steps, the firmware loads up and runs properly.
I try to follow the usage to run a firmware.I run the example successully.But when i try to start another firmware.It's always have no Internet interfaces but without any error in the step of generating run.sh. when I run the run.sh,the error is:
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[ 2.472000] VFS: Mounted root (ext2 filesystem) on device 8:1.
[ 2.484000] Freeing prom memory: 956k freed
[ 2.500000] Freeing unused kernel memory: 220k freed
[ 2.516000] firmadyne: do_execve: /firmadyne/console
[ 2.528000] OFFSETS: offset of pid: 0x100 offset of comm: 0x1f0
[ 2.544000] Kernel panic - not syncing: No init found. Try passing init= option to kernel.
I deleted the image file and try again but still not work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.