Skip to content

Manual Patch

stang6 edited this page Nov 18, 2025 · 4 revisions

Hodaka Switch FW Manual Patch Packages

Example: package/system/ubox

  1. make package/system/ubox/{clean,prepare} V=s QUILT=1
    Unpacks the source tarball and prepares existing patches as quilt patch series (if any).

  2. cd build_dir/target-aarch64_generic_glibc/ubox-2021-08-03-205defb5/
    Change to the prepared source directory.

  3. quilt push -a
    Apply all existing patches using quilt push, if any.

  4. quilt new 002-logfile_permissions.patch
    Create a new empty patch file.

  5. quilt edit log/logread.c
    Edit the file you want to modify.

  6. quilt diff
    Review the changes using quilt diff.

  7. quilt refresh
    Update the patch file (e.g., 010-main_code_fix.patch) with the new changes.

  8. cd ../../..
    Return to the top-level directory of the buildroot.

  9. make package/system/ubox/update V=sc
    Move the new patch file over to the buildroot and run update.

  10. make package/system/ubox/{clean,compile} -j1 V=sc
    Rebuild the package to test your changes.

Clone this wiki locally