Debian for ARM

/*************************************************************************
 *                        Debian for ARM
 * 说明:
 *     尝试一下Debian for ARM,然后安装了一下MySQL,还是遇到以前遇到的问题,
 * 目前还是没有解决。
 *
 *                                   2017-2-17 深圳 南山平山村 曾剑锋
 ************************************************************************/

一、参考文档:
    1. 向Tiny210移植Debian Linux
        http://blog.csdn.net/laohuang1122/article/details/10828987
    2. Debian GNU/Linux 安装手册
        https://www.debian.org/releases/stable/armhf/index.html.zh-cn
    3. EmDebian CrossDebootstrap
        https://wiki.debian.org/EmDebian/CrossDebootstrap
    4. 使用 debootstrap 建立完整的 Debian 系統
        https://github.com/KingBing/blog-src/blob/master/%E4%BD%BF%E7%94%A8%20debootstrap%20%E5%BB%BA%E7%AB%8B%E5%AE%8C%E6%95%B4%E7%9A%84%20Debian%20%E7%B3%BB%E7%B5%B1.org
    5. linux for ARM development boards
        https://www.armbian.com/
    6. How to fix GPG in updater [duplicate]
        http://askubuntu.com/questions/235880/how-to-fix-gpg-in-updater
    7. 创建基于arm的debian文件系统
        http://blog.csdn.net/luoqindong/article/details/42737879
    8. mysql指定路径启动
        http://www.cnblogs.com/mangu-uu/p/4162984.html
    9. Unable to set password for the mysql “root” user
        http://askubuntu.com/questions/253023/unable-to-set-password-for-the-mysql-root-user

二、主要操作:
    1. # apt-get install binfmt-support qemu qemu-user-static debootstrap
    2. # mkdir debian_armhf_wheezy
    3. # debootstrap --foreign --arch armhf wheezy debian_armhf_wheezy http://ftp.debian.org/debian/
    4. # cp /usr/bin/qemu-arm-static debian_armhf_wheezy/usr/bin
    5. # DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C chroot debian_armhf_wheezy /debootstrap/debootstrap --second-stage
    6. # DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C chroot debian_armhf_wheezy dpkg --configure -a
    7. # sudo chroot debian_armhf_wheezy
    8. # vi /etc/apt/source.list
        deb http://cdn.debian.net/debian wheezy main contrib non-free
        deb-src http://cdn.debian.net/debian wheezy main contrib non-free

三、运行MySQL出错:
    1. 查看信息:
        root@aplex:/var/log/mysql# mysql_install_db --user=mysql --ldata=/var/lib/mysql/
        WARNING: The host 'aplex' could not be looked up with resolveip.
        This probably means that your libc libraries are not 100 % compatible
        with this binary MySQL version. The MySQL daemon, mysqld, should work
        normally with the exception that host name resolving will not work.
        This means that you should use IP addresses instead of hostnames
        when specifying MySQL privileges !
        Installing MySQL system tables...
        000102  9:38:54 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
        000102  9:38:54 [Warning] Ignoring user change to 'mysql' because the user was set to 'root' earlier on the command line

        000102  9:38:54 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
        000102  9:38:54 [Warning] Ignoring user change to 'mysql' because the user was set to 'root' earlier on the command line

        000102  9:38:54 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
        000102  9:38:54 [Note] /usr/sbin/mysqld (mysqld 5.5.54-0+deb7u2) starting as process 4915 ...
        ERROR: 130  Incorrect file format 'db'
        000102  9:38:54 [ERROR] Aborting

        000102  9:38:54 [Note] /usr/sbin/mysqld: Shutdown complete

        Installation of system tables failed!  Examine the logs in
        /var/lib/mysql/ for more information.

        You can try to start the mysqld daemon with:

            shell> /usr/sbin/mysqld --skip-grant &

        and use the command line tool /usr/bin/mysql
        to connect to the mysql database and look at the grant tables:

            shell> /usr/bin/mysql -u root mysql
            mysql> show tables

        Try 'mysqld --help' if you have problems with paths.  Using --log
        gives you a log in /var/lib/mysql/ that may be helpful.

        Please consult the MySQL manual section
        'Problems running mysql_install_db', and the manual section that
        describes problems on your OS.  Another information source are the
        MySQL email archives available at http://lists.mysql.com/.

        Please check all of the above before submitting a bug report
        at http://bugs.mysql.com/

        root@aplex:/var/log/mysql#
    2. 避开权限进入:
        /usr/sbin/mysqld --skip-grant &

 

时间: 2024-08-02 04:13:28

Debian for ARM的相关文章

Debian For ARM mysql-server install information

/**************************************************************************** * Debian For ARM mysql-server install information * 说明: * 之前有提到安装mysql-server的时候,有出现无法配置的问题,今天再次尝试 * 安装,结果自然而然的通过了,这也是意料之外啊,目前不知道是为何,记录一下 * 安装信息. * * 2017-3-4 深圳 南山平山村 曾剑锋

Debian for ARM install python 3.5.x

/********************************************************************************** * Debian for ARM install python 3.5.x * 说明: * 记录python3.5的安装方法,同时记录python3的pip的安装方法. * * 2017-2-20 深圳 南山平山村 曾剑锋 ******************************************************

Debian For ARM Webmin Server

/******************************************************************************** * Debian For ARM Webmin Server * 说明: * 想找一个Web管理工具用在ARM上,但目前也不知道其他的软件,于是尝试安装一下 * Webmin,看一下效果如何,可行的,但是目前测试是在qemu里测试,有点卡,效果不是 * 很好的样子. * * 2017-3-4 深圳 南山平山村 曾剑锋 ********

Debian 8 Jessie desktop on arm

/********************************************************************* * Debian 8 Jessie desktop on arm * 说明: * 之前有折腾过无桌面版本的Debian系统,Lee尝试了这个有桌面版本的, * 不过系统貌似有点大. * * 2017-8-9 深圳 龙华樟坑村 曾剑锋 **************************************************************

SUSE推出针对ARM AArch64架构服务器优化的企业Linux商业发行版

SUSE在ARM TechCon大会上宣布推出 "第一个针对ARM AArch64架构服务器优化的企业Linux商业发行版",从而领先了Red Hat. 换言之,SUSE开发出了企业级Linux发行版,可以运行在64位的ARM服务器上.SUSE称该软件是全球首发,皆因其是商业成品,从而一举击败Red Hat,Red Hat企业级Linux服务器ARM版仍只提供测试开发使用的预览版. 不过,据SUSE的官方公告资料显示,"ARM版的SUSE Linux企业级服务器操作系统&qu

SUSE推出第一款针对ARM AArch64架构服务器优化的企业Linux商业发行版

SUSE在ARM TechCon大会上宣布推出 "第一个针对ARM AArch64架构服务器优化的企业Linux商业发行版",从而领先了Red Hat. 换言之,SUSE开发出了企业级Linux发行版,可以运行在64位的ARM服务器上.SUSE称该软件是全球首发,皆因其是商业成品,从而一举击败Red Hat,Red Hat企业级Linux服务器ARM版仍只提供测试开发使用的预览版. 不过,据SUSE的官方公告资料显示,"ARM版的SUSE Linux企业级服务器操作系统&qu

ARM平台上蓝牙协议栈Bluez的移植使用和配置

前言 blue简介 蓝牙(Bluetooth),或称为蓝芽,是一种新式的无线传送协议,最初由爱立信创制,后来由蓝牙特别兴趣组订定技术标准.据说因为此技术尚在萌芽的阶段,故将Bluetooth以"蓝牙"的中文译名在台湾地区进行商业的注册,不过根据英文本身的意义直译,还是"蓝牙"较为贴切. 蓝牙用于在不同的设备之间进行无线连接,例如连接计算机和外围设施,如:打印机.键盘等,又或让个人数字助理(PDA)与其它附近的PDA或计算机进行通信.目前市面上具备蓝牙技术的手机选择非

单板计算机倍受欢迎 廉价的ARM计算机能干嘛

近年来类似于树莓派的单板计算机可以说是倍受欢迎,这类产品的最大特点就是体积小巧且产品结构简单,而且基本都基于ARM架构开发,也就是说并不能原生支持大家所熟悉的x86架构应用程序.而在前不久Hardkernel就推出旗下的新一代单板计算机ODROID XU4,仅75美元的售价让这个小家伙性价比颇高,不过这类廉价ARM架构迷你电脑真的能替代传统PC吗? 从参数上来看,ODROID XU4的整体性能基本和目前的中端智能手机差不多,它搭载了主频为2GHz的三星Exynos 5422八核处理器与2GB R

很快!红帽Linux企业版将支持高通ARM服务器

ZD至顶网服务器频道 03月10日 新闻消息:今日获悉,高通(Qualcomm)和红帽(Red Hat)正在将企业版Linux移植到高通即将推出的64位ARM服务器处理器上.  具体来说,两家公司正在"合作"将红帽的企业Linux服务器ARM开发预览版移植到高通去年10月展出的24核ARMv8-A芯片上.正如其名字所说的那样,红帽的ARM开发预览版只是红帽企业Linux 的ARM构建版的半成品版.  高通周三发声明表示,"高通科技(QTI)和红帽公司成功在高通的服务器开发平台