koliqi / imx23-olinuxino Goto Github PK
View Code? Open in Web Editor NEWimx23-olinuxino
Home Page: g-lab.ca
imx23-olinuxino
Home Page: g-lab.ca
Hello,
Not an issue with the code here, per se, but could use some feedback, would be helpful. Briefly, we are building a modified kernel for our embedded system, and I want to capture a diff patch for our local mods.
This would be a simple diff matter, however, I've discovered that our partner has been building and committing build artifacts to source control. I've already chastised them for this bad practice, the diff ends up being many megabytes, where we should only be concerned with perhaps several hundred kilobytes in a patch file. Just bad, bad, bad. Anyway...
Now I want to strip out the build artifacts from the process so that we're only diff patching what's actually been changed, and not the intermediate or final build outcome files.
Files like .o files are obvious, for instance. I am a newbie to the world of building kernels, so need some advice what else to exclude. Plausibly, I could also run a Beyond Compare analysis and do it that way, also with some informed decisions along the way.
Much appreciated.
Regards,
Michael Powell
Changing the default kernel commandline via menuconfig like written in the README (console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait)
has no effect becaus it gets overridden by the imx23_olinuxino_bootlets.patch
patch, for example I had to modify this patch to use systemd as default init system:
[chris@thinkpad linux-stable]$ sed -i 's/root=\/dev\/mmcblk0p2/root=\/dev\/mmcblk0p2 init=\/usr\/lib\/systemd\/systemd/g' ../../boot/imx23_olinuxino_bootlets.patch
[chris@thinkpad boot]$ cd imx-bootlets-src-10.05.02/
[chris@thinkpad imx-bootlets-src-10.05.02]$ patch -p1 < ../imx23_olinuxino_bootlets.patch
patching file linux.db
patching file linux_prep/board/imx23_olinuxino_dev.c
patching file linux_prep/cmdlines/imx23_olinuxino_dev.txt
patching file linux_prep/core/setup.c
patching file linux_prep/include/mx23/platform.h
patching file linux_prep/Makefile
patching file Makefile
patching file uboot.db
[chris@thinkpad imx-bootlets-src-10.05.02]$ cat linux_prep/cmdlines/imx23_olinuxino_dev.txt
noinitrd console=ttyAMA0,115200 root=/dev/mmcblk0p2 init=/usr/lib/systemd/systemd rw rootwait ssp1=mmc
noinitrd console=ttyAMA0,115200 root=/dev/mmcblk0p2 init=/usr/lib/systemd/systemd rw rootwait ssp1=mmc
noinitrd console=ttyAMA0,115200 root=/dev/mmcblk0p2 init=/usr/lib/systemd/systemd rw rootwait ssp1=mmc
[chris@thinkpad imx-bootlets-src-10.05.02]$
An older Arch Linux image without systemd will also boot, just with a small error message that /usr/lib/systemd/systemd
could not be found and switching back to default init.
Hi,
you mention in several places that further code can be seen at
http://g-lab.ca but this site appears down.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.