Debian for ARM
/*************************************************************************
* Debian for ARM
* 说明:
* 尝试一下Debian for ARM,然后安装了一下MySQL,还是遇到以前遇到的问题,
* 目前还是没有解决。
*
* 2017-2-17 深圳 南山平山村 曾剑锋
************************************************************************/ 一、参考文档:
. 向Tiny210移植Debian Linux
http://blog.csdn.net/laohuang1122/article/details/10828987
. Debian GNU/Linux 安装手册
https://www.debian.org/releases/stable/armhf/index.html.zh-cn
. EmDebian CrossDebootstrap
https://wiki.debian.org/EmDebian/CrossDebootstrap
. 使用 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
. linux for ARM development boards
https://www.armbian.com/
. How to fix GPG in updater [duplicate]
http://askubuntu.com/questions/235880/how-to-fix-gpg-in-updater
. 创建基于arm的debian文件系统
http://blog.csdn.net/luoqindong/article/details/42737879
. mysql指定路径启动
http://www.cnblogs.com/mangu-uu/p/4162984.html
. Unable to set password for the mysql “root” user
http://askubuntu.com/questions/253023/unable-to-set-password-for-the-mysql-root-user 二、主要操作:
. # apt-get install binfmt-support qemu qemu-user-static debootstrap
. # mkdir debian_armhf_wheezy
. # debootstrap --foreign --arch armhf wheezy debian_armhf_wheezy http://ftp.debian.org/debian/
. # cp /usr/bin/qemu-arm-static debian_armhf_wheezy/usr/bin
. # DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C chroot debian_armhf_wheezy /debootstrap/debootstrap --second-stage
. # DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C chroot debian_armhf_wheezy dpkg --configure -a
. # sudo chroot debian_armhf_wheezy
. # 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出错:
. 查看信息:
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 % 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...
:: [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.
:: [Warning] Ignoring user change to 'mysql' because the user was set to 'root' earlier on the command line :: [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.
:: [Warning] Ignoring user change to 'mysql' because the user was set to 'root' earlier on the command line :: [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
:: [Note] /usr/sbin/mysqld (mysqld 5.5.-+deb7u2) starting as process ...
ERROR: Incorrect file format 'db'
:: [ERROR] Aborting :: [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#
. 避开权限进入:
/usr/sbin/mysqld --skip-grant &
Debian for ARM的更多相关文章
- Debian For ARM Webmin Server
/******************************************************************************** * Debian For ARM W ...
- Debian For ARM mysql-server install information
/**************************************************************************** * Debian For ARM mysql ...
- Debian for ARM install python 3.5.x
/********************************************************************************** * Debian for ARM ...
- [转]ARM/Thumb2PortingHowto
src: https://wiki.edubuntu.org/ARM/Thumb2PortingHowto#ARM_Assembler_Overview When you see some assem ...
- I.MX6 使用Ubuntu文件系统
/********************************************************************************* * I.MX6 使用Ubuntu文 ...
- linux(debian) arm-linux-g++ v4.5.1交叉编译 embedded arm 版本的QtWebkit (browser) 使用qt 4.8.6 版本
最近需要做一个项目 在arm 架构的linux下 没有桌面环境的情况下拉起 有界面的浏览器使用. 考虑用qt 的界面和 qtwebikt 的库去实现这一系列操作. 本文参考: Qt移植到ARM Lin ...
- linux(debian) arm-linux-g++ v4.5.1交叉编译 embedded arm 版本的QtWebkit (browser) 使用qt 4.8.6 版本 以及x64上编译qt
最近需要做一个项目 在arm 架构的linux下 没有桌面环境的情况下拉起 有界面的浏览器使用. 考虑用qt 的界面和 qtwebikt 的库去实现这一系列操作. 本文参考: Qt移植到ARM Lin ...
- [boostrap]debian下为arm创建debian和emdebian文件系统
转自:http://www.cnblogs.com/qiaoqiao2003/p/3738552.html Debian系统本身包含对arm的支持,其包含的软件包最多,但是最终的文件系统要大一些. e ...
- [debootstrap]制作基于arm平台的debian文件系统
之前用过的Linux文件系统是直接busybox制作的,而当前使用的是debian的Jessie,看了一些博客后,了解到如果使用debian,那么直接使用debootstrap来构建文件系统即可 -- ...
随机推荐
- PHP-Manual的学习----【语言参考】----【基本语法】
2017年6月28日11:29:311.当解析一个文件时,PHP 会寻找起始和结束标记,也就是 <?php 和 ?>,这告诉 PHP 开始和停止解析二者之间的代码.此种解析方式使得 PHP ...
- bzoj1185【HNOI2007】最小矩形覆盖
1185: [HNOI2007]最小矩形覆盖 Time Limit: 10 Sec Memory Limit: 162 MBSec Special Judge Submit: 1114 Solv ...
- [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
该问题就是防火墙的问题.关闭即可. /etc/init.d/iptables stop
- MySQL合并多行
select id,group_concat(re_id order by re_id separator ",") as re_idfrom tablenamegroup by ...
- 我的Android进阶之旅------>Android中StateListDrawable支持的状态
Android中StateListDrawable支持的状态 android:state_active 代表是否处于激活状态 android:state_checked 代表是否处于已勾选状态 an ...
- linux c编程:进程控制(三)_exec函数
fork()函数通过系统调用创建一个与原来进程(父进程)几乎完全相同的进程(子进程是父进程的副本,它将获得父进程数据空间.堆.栈等资源的副本.注意,子进程持有的是上述存储空间的“副本”,这意味着父子进 ...
- Python 面试题(上)
Python语言特性 1 Python的函数参数传递 看两个例子: a = 1 deffun(a): a = 2 fun(a) printa # 1 a = [] deffun(a): a.appen ...
- R语言读取Excel文档
在R语言数据管理(三):数据读写一博文中,我曾写到有关读取xls.xlsx文件时一般将文档改成csv文件读取,这是一般做法.csv文件也有其缺点,修改较为麻烦,当文件数据较大时尤为明显.而生活中必不可 ...
- C#DataSet/DataAdapter
DataReader必须持续连接,所以在调用方法SqlDataReader作为返回类型时候,必须在方法外关闭流,很不方便. DataAdapter用于对数据源检索数据并填充到DataSet中的表.Da ...
- 使用svn diff的-r参数的来比较任意两个版本的差异
1 svn diff的用法1.1 对比当前本地的工作拷贝文件(working copy)和缓存在.svn下的版本库文件的区别 svn diff 1.2 对比当前本地的工作拷贝文件(working co ...