본문 바로가기
728x90
반응형

3. 개발 관련191

debug printf message based on C99 Apply below definition/function in every where need tracking. ;) #define dprintf() printf("%s, %d \n",__func__, __LINE__);dprintf(); 2014. 5. 29.
ubuntu grub rescuewith boot-repair http://sourceforge.net/projects/boot-repair-cd/files/ Download boot-repair for your systems and install to USB/SDMMC card.And boot with USB/SDMMC for running boot-repair -. Can : Backup workspace are possible.-. (Maybe) Can't : Restore ubuntu systems are (maybe) so hard. Sometimes chroot/grub-install will not running. :( 2014. 5. 19.
Ubuntu kernel build from source for custom. https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide On Ubuntu 12.04, below links are available. http://kernel.ubuntu.com/git-repos/ubuntu/ubuntu-precise.git #] git clone http://kernel.ubuntu.com/git-repos/ubuntu/ubuntu-precise.git Find Up/Down grade version of Tag in git. #] git tag -l Ubuntu-* Ubuntu-a.b.c.d Checkout branch from Tag version.#] git checkout -b worksbranch Ubuntu-a.b.c.d Custom you.. 2014. 3. 17.
DeviceTree applied in Google's Nexus5! In Linux ARM kenrels, After V3.XKernel there moving machine stub to device tree about there architecture dependent code. After Chromium, In Nexus5 Hammerhead, Google support there kernel to `vmlinuz` with `dtb` files. http://androidxref.com/4.4_r1/xref/device/lge/hammerhead-kernel/ 2013. 11. 6.
dmesg convert uptime to realtime. I googling for search time stamp in kernel, not uptime. Here are really good tips for how convert uptime to real time. http://linuxaria.com/article/how-to-make-dmesg-timestamp-human-readable #!/usr/bin/perl use strict; use warnings; my @dmesg_new = (); my $dmesg = "/bin/dmesg"; my @dmesg_old = `$dmesg`; my $now = time(); my $uptime = `cat /proc/uptime | cut -d"." -f1`; my $t_now = $now - $uptime.. 2013. 11. 2.
global variable in bash Using shared memory #] echo 0 > /dev/shm/foo Increase `foo`'s value #] echo $(($( /dev/shm/foo decrease `foo`'s value #] echo $(($( /dev/shm/foo 2013. 11. 2.
728x90
반응형