openwrt x86-64 编译问题

2015-09-13 10:56:25 +08:00
 debiansid
自己编译的固件无法认出 rootfs ,官方的就可以。
rootfs 在 cf 卡上,请教下 ata_piix 如何编译进内核?
460 次点击
所在节点    OpenWrt
11 条回复
coffeecat
2015-09-13 11:05:29 +08:00
如果有挂载其他硬盘,改编译选项 /dev/sda 为 /dev/sdb 看看,或者单独挂载 cf 卡

另外查查 ata_piix 的 dependent ,全部编译进去就行
debiansid
2015-09-13 11:12:41 +08:00
@coffeecat ata_piix 选项在 kernel_menuconfig 里面选?
coffeecat
2015-09-13 13:36:42 +08:00
@debiansid
#
# Kernel modules
#

#
# Block Devices
#
# CONFIG_PACKAGE_kmod-aoe is not set
CONFIG_PACKAGE_kmod-ata-core=y
CONFIG_PACKAGE_kmod-ata-ahci=y
# CONFIG_PACKAGE_kmod-ata-artop is not set
# CONFIG_PACKAGE_kmod-ata-marvell-sata is not set
# CONFIG_PACKAGE_kmod-ata-nvidia-sata is not set
# CONFIG_PACKAGE_kmod-ata-pdc202xx-old is not set
# CONFIG_PACKAGE_kmod-ata-piix is not set
# CONFIG_PACKAGE_kmod-ata-sil is not set
# CONFIG_PACKAGE_kmod-ata-sil24 is not set
# CONFIG_PACKAGE_kmod-ata-via-sata is not set
# CONFIG_PACKAGE_kmod-block2mtd is not set
# CONFIG_PACKAGE_kmod-dm is not set
# CONFIG_PACKAGE_kmod-ide-core is not set
# CONFIG_PACKAGE_kmod-libsas is not set
CONFIG_PACKAGE_kmod-loop=y
# CONFIG_PACKAGE_kmod-md-mod is not set
# CONFIG_PACKAGE_kmod-mvsas is not set
# CONFIG_PACKAGE_kmod-nbd is not set
# CONFIG_PACKAGE_kmod-pata-cs5535 is not set
# CONFIG_PACKAGE_kmod-pata-cs5536 is not set
# CONFIG_PACKAGE_kmod-scsi-cdrom is not set
CONFIG_PACKAGE_kmod-scsi-core=y
CONFIG_PACKAGE_kmod-scsi-generic=y
debiansid
2015-09-13 15:44:25 +08:00
@coffeecat 还是一样问题, 无法认出 root device
debiansid
2015-09-13 18:02:54 +08:00
root@openwrt-x86:/# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 46.5M 32.4M 13.1M 71% /
/dev/root 46.5M 32.4M 13.1M 71% /
tmpfs 998.7M 2.3M 996.4M 0% /tmp
tmpfs 512.0K 0 512.0K 0% /dev

先用 trunk 先顶住,看看怎么解决这个问题吧
debiansid
2015-09-14 12:12:08 +08:00
问题应该是自己编译的内核没有 sata 驱动,且不能作为模块编译,今天再试试
debiansid
2015-09-15 13:26:17 +08:00
@coffeecat 官方的完全没问题
lisaac
2015-09-17 10:52:13 +08:00
@debiansid 查查看是否是引导问题,具体情况看你目录结构以及编译的时候 grub 配置项。
debiansid
2015-09-17 12:54:09 +08:00
@lisaac 试过了 还是驱动吧 不能启动时 系统没认出 sda
lisaac
2015-09-17 13:12:34 +08:00
@debiansid CF 卡应该是 usb 驱动吧, xhci-hcd ehci-hcd
debiansid
2015-09-17 13:33:44 +08:00
@lisaac 插在主板背面的 sata 的应该是

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/220325

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX