#17947: Target System (x86_64) can't mount /dev/sda2
-----------------------+----------------------------------
Reporter: Galen | Owner: developers
Type: defect | Status: reopened
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: packages | Version: Trunk
Resolution: | Keywords:
-----------------------+----------------------------------
Changes (by Galen):
* status: closed => reopened
* resolution: worksforme =>
Comment:
Hi jow,
Thank you very much, you command works for me, too, it's great!
but I burn the firmwre to a WD sata hard disk on a PC, and change BIOS to
boot from it,
the phenomenon is same as "qemu-system-x86_64 -hda openwrt-x86_64
-combined-ext4.img"
It is blocking at "Waiting for root device /dev/sda2..."
So, I have to find the difference between x86 and x86_64
{{{
diff -Naur target/linux/x86_64/config-default
target/linux/x86/config-3.10
}}}
and I find difference, add the two lines to target/linux/x86_64/config-
default
{{{
+CONFIG_ATA_GENERIC=y
+CONFIG_ATA_PIIX=y
}}}
After it, I run
{{{
make -j16
qemu-system-x86_64 -nographic -hda bin/x86_64/openwrt-x86_64-combined-
ext4.img
}}}
Now, I can enter system successfully!
Should commit the changeset to Trunk? because it can't bring up x86_64 PC.
or I have to change CMOS? and how?
Below is the git changeset:
{{{
git diff
diff --git a/target/linux/x86_64/config-default b/target/linux/x86_64
/config-default
index f3aabcb..f414544 100644
--- a/target/linux/x86_64/config-default
+++ b/target/linux/x86_64/config-default
@@ -66,6 +66,8 @@ CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
# CONFIG_ASUS_LAPTOP is not set
CONFIG_ATA=y
# CONFIG_ATA_SFF is not set
+CONFIG_ATA_GENERIC=y
+CONFIG_ATA_PIIX=y
CONFIG_AUDIT_ARCH=y
CONFIG_AVERAGE=y
CONFIG_BINFMT_MISC=y
}}}
I saw x86 has Subtarget, but x86_64 dont' have it, why?
This is x86's menuconfig
{{{
Target System (x86) --->
Subtarget (Generic) --->
Target Profile (Generic) ---> Have many Profile
}}}
This is x86_64's menuconfig
{{{
Target System (x86_64) --->
Target Profile (Default) ---> Only have one profile (Default)
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/17947#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets