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来构建文件系统即可 -- ...
随机推荐
- 【BZOJ3926】[Zjoi2015]诸神眷顾的幻想乡 广义后缀自动机
[BZOJ3926][Zjoi2015]诸神眷顾的幻想乡 Description 幽香是全幻想乡里最受人欢迎的萌妹子,这天,是幽香的2600岁生日,无数幽香的粉丝到了幽香家门前的太阳花田上来为幽香庆祝 ...
- Hibernate 表连接hql语句
现有两个表 user 表 和 VIPcard 表 UserVo user VIPcardVo 中含有 UserVo user select v from VIPCardVo v left join ...
- POJ 2993 Emag eht htiw Em Pleh【模拟画棋盘】
链接: http://poj.org/problem?id=2993 http://acm.hust.edu.cn/vjudge/contest/view.action?cid=27454#probl ...
- Apache转发规则的一点注意
RewriteRule ^studio/$ book.php?mod=studio 这种目录转发, 正常情况下是没问题的. 但是当根目录下存在一个 studio 目录时, apache就不会转发URL ...
- 摇一摇js代码
init(); var SHAKE_THRESHOLD = 3000; var last_update = 0; var x = y = z = last_x = last_y = last_z = ...
- [转】IIS:Do not nest virtual directories
原文:https://msdn.microsoft.com/en-us/library/ms178685.aspx#Anchor_6 Configuration settings for virtua ...
- Django之CURD插件2
目标:达到下图拥有功能的实现 1.绑定编辑按钮 ************思路**************** 1.为编辑按钮添加样式,可以根据样式来进行判断在什么状态. 2.进入编辑模式,将可编辑的字 ...
- Google的Guava之IO升华
版权声明:本文为博主原创文章,未经博主同意不得转载. https://blog.csdn.net/luo201227/article/details/36413279 程序员在开发过程中,使用文件的几 ...
- js实现粘贴板复制
<a href = '#' onclick ='javascript:window.clipboardData.setData('text','${form.param}');alert('クリ ...
- php自定义的格式化时间示例代码
时间刚好是5分钟前,则对应的时间戳就会被格式化为5分钟前,自定义的格式化时间方法如下,感兴趣的朋友可以参考下 如:时间刚好是5分钟前,则对应的时间戳就会被格式化为5分钟前,不多说了,直接贴上代码: 复 ...