历史上的今天
返回首页

历史上的今天

今天是:2025年01月15日(星期三)

正在发生

2020年01月15日 | Debian for ARM

2020-01-15 来源:eefocus

/*************************************************************************

 *                        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 chroot debian_armhf_wheezy /debootstrap/debootstrap --second-stage

    6. # DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=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 &

推荐阅读

史海拾趣

BEKA Associates Ltd公司的发展小趣事

在电子行业,供应链管理对于企业的生存和发展至关重要。BCD Semi(Diodes)深知这一点,因此在供应链管理方面进行了大量的优化工作。公司与多家优质的供应商建立了长期稳定的合作关系,确保原材料的稳定供应和质量可靠。同时,公司还采用先进的物流管理系统,实现了对供应链的实时监控和高效运作,有效降低了运营成本并提高了运营效率。

Cantec Electronic Co Ltd公司的发展小趣事

随着电子行业的快速发展,市场竞争日益激烈。Cantec Electronic Co Ltd意识到,传统的生产模式已经无法满足市场的需求。于是,公司决定进行转型升级,将重心转向智能电子产品的研发和生产。通过引进先进的生产设备和技术人才,公司成功开发出了一系列具有竞争力的智能电子产品,赢得了市场的广泛认可。

Datalogic公司的发展小趣事

随着公司业务的不断发展,Datalogic意识到全球市场的巨大潜力。从2000年代开始,公司加快了全球化步伐,通过设立销售和服务中心,覆盖了全球100多个国家。这种全球布局不仅使Datalogic能够更好地服务全球客户,还为公司带来了更多的市场机会。

Datasensor公司的发展小趣事

1978年,DATALOGIC公司成功研制出欧洲第一台条码扫描器,并将此产品应用于商业领域。这一创新不仅展示了公司在光电技术领域的实力,也为其在工业自动化领域赢得了良好的声誉。条码扫描器的成功推出,为公司带来了可观的收益,也为公司后续的技术研发和市场拓展提供了强有力的支持。

Abbotec Incorporated公司的发展小趣事

随着技术的不断成熟,Abbotec开始将目光投向国际市场。公司积极参与国际电子展会,与多家国外企业建立了合作关系。通过与这些企业的合作,Abbotec不仅将产品销往全球各地,还引进了一些先进的生产技术和管理经验,进一步提升了自身的竞争力。

磁联达(CND-tek)公司的发展小趣事

随着5G技术的快速发展,磁联达(CND-tek)公司意识到无线充电技术将成为未来的重要趋势。公司投入大量资源进行无线充电发射线圈的研发,经过多次试验和改进,终于成功推出了一款性能稳定、效率高的无线充电产品。这一创新不仅为公司带来了丰厚的利润,也进一步巩固了公司在行业内的领先地位。

问答坊 | AI 解惑

求“基于VHDL的数字频率计设计和制作”的论文或相关资料

本帖最后由 paulhyde 于 2014-9-15 09:50 编辑 哪位高人能帮帮我啊!急需!!!谢了先……有的话请发到我的邮箱:cocokaola@126.com  …

查看全部问答>

如何精确控制多个继电器的延时触发?

我现在需要工控机(IPC)控制30个继电器并行工作,要求延时精度在1毫秒, windows够精度的方法都太耗资源,不能同时开30个,只好想办法硬件解决…… 不知道有没有这类现成的继电器输出板卡可以选? 另外单片机最多有内置多少个定时器的?或者只 ...…

查看全部问答>

通信原理

推荐一本学的好书,最好国外的,以翻译的 中国的写的太乱了,看的好累,特备是 樊昌信的太乱了~!~!~!~…

查看全部问答>

基于TFT彩屏的51源程序代码

大家有彩屏的资料 拿出来嗮嗮咯!!!…

查看全部问答>

使用430F437发现32K晶体起振速度很慢,引起LCD显示开机不正常。

使用430F437发现32K晶体起振速度很慢,引起LCD显示开机不正常。 是什么原因引起的,我怎么改电容都不行啊。…

查看全部问答>

sitara 板子已收到

sitara 板子已收到,还没拆开看,晚上上图 ___________________________________________________ 对不住大家了,晚上光线不好,照了几张惨不忍睹,就不上传了。 屏幕色彩不太好,其他都很不错。 [ 本帖最后由 lcofjp 于 2012-11-20 19:50 编辑 ...…

查看全部问答>

在用MSP430编程时,想得到浮点数的整数和小数部分

在用MSP430编程时,想得到浮点数的整数和小数部分,哪位有解决的办法?…

查看全部问答>

Linux驱动程序工作原理简介

[Linux资料]Linux驱动程序工作原理简介 Linux驱动程序工作原理简介 一、linux驱动程序的数据结构        1 二、设备节点如何产生?        2 三、应用程序是如何访问设备驱动程序的?    &n ...…

查看全部问答>

【Altera SoC体验之旅】+准备工作

       昨天DE1到手,就准备装开发环境,因为QII之前有装是13.1,所以打算装个EDS就可以开工了,到altera下载了个SOCEDS 14.1版本,等下完安装的时候提示这个软件只能装在64位系统上,一下蛋疼了,现在用的xp,装了诸多的软件 ...…

查看全部问答>

关于XILINX后期布线问题

各位大侠,请问ISE怎么强制使某NET不布线,其他NET布线,编译通过 …

查看全部问答>