V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
debiansid
V2EX  ›  OpenWrt

openwrt x86-64 编译问题

  •  
  •   debiansid · 2015-09-13 10:56:25 +08:00 · 448 次点击
    这是一个创建于 3161 天前的主题,其中的信息可能已经有所发展或是发生改变。
    自己编译的固件无法认出 rootfs ,官方的就可以。
    rootfs 在 cf 卡上,请教下 ata_piix 如何编译进内核?
    第 1 条附言  ·  2015-09-15 13:23:34 +08:00
    还是没有搞定……
    第 2 条附言  ·  2015-09-18 17:07:13 +08:00
    Make defconfig 再看看
    11 条回复    2015-09-17 13:33:44 +08:00
    coffeecat
        1
    coffeecat  
       2015-09-13 11:05:29 +08:00
    如果有挂载其他硬盘,改编译选项 /dev/sda 为 /dev/sdb 看看,或者单独挂载 cf 卡

    另外查查 ata_piix 的 dependent ,全部编译进去就行
    debiansid
        2
    debiansid  
    OP
       2015-09-13 11:12:41 +08:00
    @coffeecat ata_piix 选项在 kernel_menuconfig 里面选?
    coffeecat
        3
    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
        4
    debiansid  
    OP
       2015-09-13 15:44:25 +08:00
    @coffeecat 还是一样问题, 无法认出 root device
    debiansid
        5
    debiansid  
    OP
       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
        6
    debiansid  
    OP
       2015-09-14 12:12:08 +08:00 via iPhone
    问题应该是自己编译的内核没有 sata 驱动,且不能作为模块编译,今天再试试
    debiansid
        7
    debiansid  
    OP
       2015-09-15 13:26:17 +08:00 via iPhone
    @coffeecat 官方的完全没问题
    lisaac
        8
    lisaac  
       2015-09-17 10:52:13 +08:00
    @debiansid 查查看是否是引导问题,具体情况看你目录结构以及编译的时候 grub 配置项。
    debiansid
        9
    debiansid  
    OP
       2015-09-17 12:54:09 +08:00 via iPhone
    @lisaac 试过了 还是驱动吧 不能启动时 系统没认出 sda
    lisaac
        10
    lisaac  
       2015-09-17 13:12:34 +08:00
    @debiansid CF 卡应该是 usb 驱动吧, xhci-hcd ehci-hcd
    debiansid
        11
    debiansid  
    OP
       2015-09-17 13:33:44 +08:00 via iPhone
    @lisaac 插在主板背面的 sata 的应该是
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5547 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 08:07 · PVG 16:07 · LAX 01:07 · JFK 04:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.