embedded-linux

How to check password in Linux by using C or shell?

こ雲淡風輕ζ 提交于 2020-08-25 10:54:19
问题 I have a program written in C running on a embedded Linux, sometimes it want to check the password of a system user. If I can get the crypt salt of /etc/passwd , I can use crypt() to check the correction of user password. Is there any script of shell can help me check the password? Such as check_passwd username password, then it return a value for correct or incorrect? Thanks! 回答1: As suggested above, the correct way to handle this is to use pluggable authentication modules. You have to add

How to check password in Linux by using C or shell?

微笑、不失礼 提交于 2020-08-25 10:52:54
问题 I have a program written in C running on a embedded Linux, sometimes it want to check the password of a system user. If I can get the crypt salt of /etc/passwd , I can use crypt() to check the correction of user password. Is there any script of shell can help me check the password? Such as check_passwd username password, then it return a value for correct or incorrect? Thanks! 回答1: As suggested above, the correct way to handle this is to use pluggable authentication modules. You have to add

best approach of image versioning in yocto

不羁岁月 提交于 2020-08-23 04:59:04
问题 What is the best approach for maintaining image versions in Yocto. I mean suppose we build an image and given it to customer, in future we provided bug fixes to the customer.. How can we know which version of yocto image customer is using.. Is there any standard way to achieve this.. Thanks for your time. Appreciate your efforts.. 回答1: You are interested in os-release recipe. This gives provision to add version details to the image. This recipe installs a file /etc/os-release in the target.

how to make i2c-core as module

久未见 提交于 2020-08-10 19:20:21
问题 Hello I have beagleboneblack board and have kernel source code I want to make my i2c work as a module so for that, I have done some changes in .config file # # I2C support # CONFIG_I2C=m and cross compile kernel make dtbs zImage -j8 CROSS_COMPILE=arm-linux-gnueabihf- But after compile successfully, CONFIG_I2C change from 'm' to 'y' how to solve this problem? 来源: https://stackoverflow.com/questions/62752609/how-to-make-i2c-core-as-module

usb Mass Storage driver for am335x

让人想犯罪 __ 提交于 2020-07-22 06:07:31
问题 i want to loard a usb drive storage module so i make when i load usb mass storage module the usb drive detect in /media or /dev/sda1 I have one customized bord using an am335x processor and this board has one USB port(for USB drive connector) and one micro USB port. and also have kernel source code and version is 4.4.16 now i follow the command to compile kernel source code make distclean CROSS_COMPILE=arm-linux-gnueabihf- make am335x_fujitel_defconfig CROSS_COMPILE=arm-linux-gnueabihf- note=

usb Mass Storage driver for am335x

你离开我真会死。 提交于 2020-07-22 06:06:30
问题 i want to loard a usb drive storage module so i make when i load usb mass storage module the usb drive detect in /media or /dev/sda1 I have one customized bord using an am335x processor and this board has one USB port(for USB drive connector) and one micro USB port. and also have kernel source code and version is 4.4.16 now i follow the command to compile kernel source code make distclean CROSS_COMPILE=arm-linux-gnueabihf- make am335x_fujitel_defconfig CROSS_COMPILE=arm-linux-gnueabihf- note=

I was looking for a default U-boot configuration for BeagleBone Black. I cannot find am335x_boneblack_defconfig inside u-boot/configs/ folder

旧巷老猫 提交于 2020-07-22 05:19:29
问题 The old versions show am335x_boneblack_defconfig(branch v2017.01 instead of the master) file inside the directory but I am not able to see it in the newer version.So which branch should I use to build U-Boot for BeagleBone Black? Under boards/ti/am335x/, I saw that am335x_* can be used for BeagleBone Black. Any help will be appreciated? 回答1: I think you can use configs/am335x_evm_defconfig - see line 36: CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk am335x-bonegreen

Editing Kernel command-line arguments inside Kernel

那年仲夏 提交于 2020-07-15 06:18:19
问题 U-boot passes kernel command-line parameters. In my requirement I want to edit these parameters in the kernel source tree and don't want to change U-boot code. I am using 2.6.35 kernel. So please guide me which part of the kernel source I have to check for this. 回答1: Follow this procedure: Enter the kernel config by typing make menuconfig Enter the menu Processor type and features Enable Built-in kernel command line Specify your command line by clicking on Built-in kernel command string