This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| By default enum can't be as bitfield | |
| typedef enum _type_ { | |
| CAT = 0, | |
| DOG, | |
| UNKNOWN | |
| } TYPE; | |
| typedef struct _animal { | |
| TYPE type : 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grep -Ev '^(X|Y|Z)' /path/to/your/file | |
| -E is to use extended regular expressions. | |
| ^ matches the beginning of the line. | |
| (X|Y|Z) means lines start with X or Y or Z. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hardware is embedded linux | |
| - Application is cross compiled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - linux boot hanged after showing "bootconsole[uart0] disabled". | |
| - Make sure that boot args are having console=ttySX,115200n8 | |
| - where X in ttySX is the number of the device. It can be ttyS0, ttyS1 and so on. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - Use menuconfig to enable options in FileSystem to match filesystem of your storage device where rootfs is placed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - Add rootfstype=ext4 to bootargs to get rid of this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - Make sure that you got /sbin/init (A bash script) onto your rootfs. | |
| - Make sure that /sbin/init is placed after chmod +x. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on local host install sshfs via sudo apt-get install sshfs | |
| mkdir /folder/on/local/machine/used/for/mounting | |
| sshfs <user-name>@<machine-name>:/<path/to/folder/to/be/mounted> /folder/on/local/machine/used/for/mounting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Problem: Ubuntu 14.04 was playing noise alonwith mp3 file. | |
| Solution: Add 'options snd-hda-intel vid=8086 pid=8ca0 snoop=0' at the end of file /etc/modprobe.d/alsa-base.conf. |
OlderNewer