Summary of some problems encountered during the development process. In the future, problems will be solved.
1: The error "GTK-warning **: locale not supported by C library." is displayed. Check whether the gconv library is in the/usr/lib directory. Gconv must be in the/usr/lib directory. Other directories do not seem to work (my personal opinion ).
2: Generate files under the locale directory Localedef-F charmapfile-I inputfile output [see man localedef] This time, we need to add Ukrainian text to the Board to generate things under the locale directory. However, this is related to the platform (mainly related to the size of the word end, speculation, no verification. In this way, you have to go to the board, but it has been killed for several times, and no error was found with strace. However, after MMAP, you quit and the result is killed. No way, the last colleague said this operation was relatively memory-consuming. He used to do it on a m board. Find a M memory board and copy everything in the/usr/share/i18n/directory on the PC. The system is dizzy and still has an error. ). The problem is that the fonts of Ukrainian text are not fixed. Let's continue.3: fontconfig Problems Check whether the configuration file in the/etc/fonts/[or other ETC/fonts] Directory is correct. If yes, check whether the corresponding fonts directory exists. [Some fontconfig tools FC-*** (FC-cache, FC-cat, FC-list, FC-match)] 4: view the number of lines of source code Find./-name '*. [CH]'-typf f | xargs cat | WC-l recursively view the total number of rows in all. C and. H files in the current directory. Find./-name '*. c'-type F | xargs cat | WC-l recursively view the total number of rows in all. c files in the current directory. 5. LOGO modification during Linux Startup If you only need to modify the logo to display an image, you can directly replace the include/ASM-xxx/linux_logo.h file in the kernel directory. If you modify the logo to display the animation effect. You can make the following changes: Merge the contents of multiple linux_logo.h files into one file. In the merged file, linux_logo_red, linux_logo_green, linux_logo_blue, and linux_logo are converted into two-dimensional arrays. You can put the content in the corresponding array of each linux_logo.h as an array element into the corresponding array; then modify Drivers/Video/fbcon. the fbcon_show_logo function in the C file moves the original content of this function to a new function, and then processes it to regularly display a set of images, add a timer in fbcon_show_logo to call the newly added function. Linux_logo.h can be obtained from a jpg image or PNG image. The procedure is as follows: Convert-colors 223-dither src.jpg dst.png; fblogo dst.png linux_logo.h (the default kernel can only support 223 colors. In the kernel, 8 bits are used. There are a total of 256 items, of which 33 are reserved for the system, so there are only 223 colors ). In addition, when the Board is shut down, the logo is pure RGB data, which is also transferred from JPG. The steps are as follows: Convert-colors 223-dither src.jpg dst.png; convert dst.png-size 480X272-depth 8 RGB: logo. (Specific convert usage can see its help file) http://www.diybl.com/course/6_system/linux/Linuxjs/20090312/160841.html |